mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 01:21:48 +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
12 lines
272 B
Python
12 lines
272 B
Python
from uuid import UUID
|
|
from models.settings import get_supabase_db
|
|
|
|
|
|
def remove_chat_notifications(chat_id: UUID) -> None:
|
|
"""
|
|
Remove all notifications for a chat
|
|
"""
|
|
supabase_db = get_supabase_db()
|
|
|
|
supabase_db.remove_notifications_by_chat_id(chat_id)
|