aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notifier
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-22 18:43:14 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-22 18:43:14 -0400
commit862b8c925277e78bd7ecbe0d4d142ba48dc97bc9 (patch)
treeb54e3e38c38e76e83083e3d537ae68acd041e733 /internal/notifier
parent1c415745a8bde532c3f668f7833019120ca89292 (diff)
parent31211a9436b7073ee054cbc091ce684a9051efec (diff)
downloaddonetick-862b8c925277e78bd7ecbe0d4d142ba48dc97bc9.tar.gz
donetick-862b8c925277e78bd7ecbe0d4d142ba48dc97bc9.tar.bz2
donetick-862b8c925277e78bd7ecbe0d4d142ba48dc97bc9.zip
Merge branch 'dev'
to support linux_386 change the variable to be defined as int64 to Fix int overflow issue by using int64 for MaxInt64 assignments
Diffstat (limited to 'internal/notifier')
-rw-r--r--internal/notifier/repo/repository.go2
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(&notifications).Error; err != nil {
+ if err := r.db.Where("is_sent = ? AND scheduled_for < ? AND scheduled_for > ?", false, end, start).Find(&notifications).Error; err != nil {
return nil, err
}
return notifications, nil