mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Add beat config for send-scheduled-notifications task to run every 15 minutes.
Added the missing commit to the update pending
This commit is contained in:
@@ -483,8 +483,9 @@ def dao_get_scheduled_notifications():
|
||||
|
||||
|
||||
def set_scheduled_notification_to_processed(notification_id):
|
||||
ScheduledNotification.query.filter(
|
||||
db.session.query(ScheduledNotification).filter(
|
||||
ScheduledNotification.notification_id == notification_id
|
||||
).update(
|
||||
{'pending': False}
|
||||
)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user