Skip to content

Commit

Permalink
fix(chats): delete chats from correct table (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
vankeer committed Aug 3, 2023
1 parent 68f03b2 commit 659e585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/models/databases/supabase/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_chat_details(self, chat_id):
return response

def delete_chat(self, chat_id):
self.db.table("chat_history").delete().match({"chat_id": chat_id}).execute()
self.db.table("chats").delete().match({"chat_id": chat_id}).execute()

def delete_chat_history(self, chat_id):
self.db.table("chat_history").delete().match({"chat_id": chat_id}).execute()

0 comments on commit 659e585

Please sign in to comment.