diff options
Diffstat (limited to 'internal/notifier')
-rw-r--r-- | internal/notifier/repo/repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/notifier/repo/repository.go b/internal/notifier/repo/repository.go index 576a3f0..38d1819 100644 --- a/internal/notifier/repo/repository.go +++ b/internal/notifier/repo/repository.go @@ -36,7 +36,7 @@ func (r *NotificationRepository) GetPendingNotificaiton(c context.Context, lookb var notifications []*nModel.Notification start := time.Now().UTC().Add(-lookback) end := time.Now().UTC() - if err := r.db.Debug().Where("is_sent = ? AND scheduled_for < ? AND scheduled_for > ?", false, end, start).Find(¬ifications).Error; err != nil { + if err := r.db.Where("is_sent = ? AND scheduled_for < ? AND scheduled_for > ?", false, end, start).Find(¬ifications).Error; err != nil { return nil, err } return notifications, nil |