- Assign default circle to user when leaving a circle
- Support Pushover - Support Disable Signup - Migrate chatID to TargetID
This commit is contained in:
parent
850d472445
commit
adf5c0c0cd
20 changed files with 362 additions and 151 deletions
|
@ -41,3 +41,7 @@ func (r *NotificationRepository) GetPendingNotificaiton(c context.Context, lookb
|
|||
}
|
||||
return notifications, nil
|
||||
}
|
||||
|
||||
func (r *NotificationRepository) DeleteSentNotifications(c context.Context, since time.Time) error {
|
||||
return r.db.WithContext(c).Where("is_sent = ? AND scheduled_for < ?", true, since).Delete(&nModel.Notification{}).Error
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue