Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Feb 7, 2024
1 parent 33904f9 commit 9270fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/backend/cron/alarm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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").
Expand All @@ -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).
Expand Down

0 comments on commit 9270fa0

Please sign in to comment.