resync rooms every 5 minutes

This commit is contained in:
Aine
2023-01-03 20:13:30 +02:00
parent 2ac6c64d13
commit f54b87c1f7
3 changed files with 18 additions and 2 deletions

View File

@@ -153,6 +153,11 @@ func initCron() {
if err != nil {
log.Error("cannot start queue processing cronjob: %v", err)
}
err = cron.AddJob("*/5 * * * *", mxb.SyncRooms)
if err != nil {
log.Error("cannot start sync rooms cronjob: %v", err)
}
}
func initShutdown(quit chan struct{}) {