quivr/backend/repository/notification/update_notification.py
Mamadou DICKO 575d9886c5
feat: add notifications table, and push notification on upload and crawl (#1125)
* feat: add notifications table

* feat: add Notification model

* feat: add notification repositories

* feat: add upload and crawl notifications

* feat: update notification message
2023-09-07 13:22:06 +02:00

14 lines
390 B
Python

from models.databases.supabase.notifications import NotificationUpdatableProperties
from models.settings import get_supabase_db
def update_notification_by_id(
notification_id, notification: NotificationUpdatableProperties
):
"""
Update a notification
"""
supabase_db = get_supabase_db()
return supabase_db.update_notification_by_id(notification_id, notification)