use new batch api for setting global alerts

This commit is contained in:
Henry Dollman
2024-11-27 17:07:44 -05:00
parent ed01752546
commit 87f7390eca
2 changed files with 55 additions and 49 deletions

View File

@@ -70,6 +70,10 @@ func (h *Hub) Run() {
if err != nil {
log.Fatal(err)
}
// set general settings
settings := h.app.Settings()
// batch requests (for global alerts)
settings.Batch.Enabled = true
// set auth settings
usersCollection, err := h.app.FindCollectionByNameOrId("users")
if err != nil {