From 079eb09ad4c02b950f2b9079d773b86b8743aac4 Mon Sep 17 00:00:00 2001 From: Groupr Date: Mon, 21 Jul 2025 19:56:32 +0000 Subject: [PATCH] Update send_node_digest_notifications.py --- remarkbox/scripts/send_node_digest_notifications.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remarkbox/scripts/send_node_digest_notifications.py b/remarkbox/scripts/send_node_digest_notifications.py index f9bb88b..6727bcb 100644 --- a/remarkbox/scripts/send_node_digest_notifications.py +++ b/remarkbox/scripts/send_node_digest_notifications.py @@ -34,7 +34,8 @@ def main(): # Let deliver_scheduled_notifications manage its own transaction deliver_scheduled_notifications(request) - + dbsession.flush() # Ensure changes are flushed before commit + transaction.commit() # Check after and mark as sent with fresh session try: with transaction.manager: