From 9270fa0331c3c09637371d2d8f7579e75d5ef05d Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Wed, 13 Sep 2023 19:33:10 +0200 Subject: [PATCH] typo --- server/backend/cron/alarm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/backend/cron/alarm.go b/server/backend/cron/alarm.go index f92870af..7162878b 100644 --- a/server/backend/cron/alarm.go +++ b/server/backend/cron/alarm.go @@ -10,12 +10,12 @@ func (c *CronService) alarmCron() error { return notifyAllUsers(c.db, sendGCMNotification) } -func sendGCMNotification(*[]model.Device) error { +func sendGCMNotification(*[]model.Devices) error { log.Trace("sendGCMNotification") return nil } -func notifyAllUsers(db *gorm.DB, callbacks ...func(*[]model.Device) error) error { +func notifyAllUsers(db *gorm.DB, callbacks ...func(*[]model.Devices) error) error { var pendingNotifications []model.Notification if err := db. Joins("notification_confirmation"). @@ -27,7 +27,7 @@ func notifyAllUsers(db *gorm.DB, callbacks ...func(*[]model.Device) error) error } for _, pending := range pendingNotifications { // Get a few targets - var targets []model.Device + var targets []model.Devices if err := db. Distinct("device"). Where("notification = ?", pending.Notification).