Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
feat: cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
TatarinAlba committed Nov 23, 2024
1 parent 6495bdb commit 5044cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/api/lifespan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5044cb5

Please sign in to comment.