fix: close chat deletion and transport errors

This commit is contained in:
Jesse_Chen
2026-07-20 14:44:24 +08:00
parent f7b967f3d9
commit 4ffebdd5be
5 changed files with 78 additions and 63 deletions
@@ -0,0 +1,7 @@
begin;
drop policy if exists chat_sessions_delete_own on public.chat_sessions;
create policy chat_sessions_delete_own
on public.chat_sessions for delete to authenticated
using ((select auth.uid()) = user_id);
grant delete on table public.chat_sessions to authenticated;
commit;