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:
Rebecca Law
2017-05-22 16:30:45 +01:00
parent 9bfba52f53
commit 76d0783c63
3 changed files with 10 additions and 4 deletions

View File

@@ -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()