Support linux_386 by changing minChores to int64, remove debugging log for getNotification
This commit is contained in:
parent
6184aba245
commit
31211a9436
2 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue