mirror of
https://github.com/StanGirard/quivr.git
synced 2025-01-06 03:04:42 +03:00
12 lines
323 B
Python
12 lines
323 B
Python
|
from models.databases.supabase.notifications import CreateNotificationProperties
|
||
|
from models.settings import get_supabase_db
|
||
|
|
||
|
|
||
|
def add_notification(notification: CreateNotificationProperties):
|
||
|
"""
|
||
|
Add a notification
|
||
|
"""
|
||
|
supabase_db = get_supabase_db()
|
||
|
|
||
|
return supabase_db.add_notification(notification)
|