mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-12 19:39:27 +03:00
9464707d40
* feat: add chat_id to upload and crawl payload * feat(chat): return chat_history_with_notifications * feat: explicit notification status on create * feat: handle notifications in frontend * feat: delete chat notifications on chat delete request
15 lines
351 B
Python
15 lines
351 B
Python
from typing import List
|
|
from uuid import UUID
|
|
|
|
from models.notifications import Notification
|
|
from models.settings import get_supabase_db
|
|
|
|
|
|
def get_chat_notifications(chat_id: UUID) -> List[Notification]:
|
|
"""
|
|
Get notifications by chat_id
|
|
"""
|
|
supabase_db = get_supabase_db()
|
|
|
|
return supabase_db.get_notifications_by_chat_id(chat_id)
|