mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 02:36:17 +01:00
use new batch api for setting global alerts
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user