mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-26 21:02:31 +03:00
575d9886c5
* feat: add notifications table * feat: add Notification model * feat: add notification repositories * feat: add upload and crawl notifications * feat: update notification message
14 lines
390 B
Python
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)
|