From 5044cb5364a04eaa031973508563cbda6b27e116 Mon Sep 17 00:00:00 2001 From: Albert Avkhadeev Date: Sun, 24 Nov 2024 02:36:46 +0300 Subject: [PATCH] feat: cronjob --- backend/src/api/lifespan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/lifespan.py b/backend/src/api/lifespan.py index 3e94e37..6f7fd21 100644 --- a/backend/src/api/lifespan.py +++ b/backend/src/api/lifespan.py @@ -88,11 +88,11 @@ async def push_notification(): if sent_notification_number == 0: if notification.event_title is not None: await notification_repository.make_sent_notifications_by_filter( - Filter(event_title=notification.event_title, user_id=notification.user_id) + Filter(event_title=[notification.event_title], user_id=notification.user_id) ) elif notification.sport_title is not None: await notification_repository.make_sent_notifications_by_filter( - Filter(sport_title=notification.sport_title, user_id=notification.user_id) + Filter(sport_title=[notification.sport_title], user_id=notification.user_id) ) print("🚀 PUSH JOB FINISHED")