rairo commited on
Commit
6c7c430
·
verified ·
1 Parent(s): 9ea4be7

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -969,7 +969,7 @@ def speak_notes(notes_id):
969
  'content-type': 'audio/mpeg',
970
  'cache-control': '3600',
971
  'upsert': 'true',
972
- 'owner': user.id # Essential for RLS policies
973
  }
974
  )
975
 
@@ -983,7 +983,7 @@ def speak_notes(notes_id):
983
  update_res = supabase.table('notes') \
984
  .update({'tts_audio_url': audio_url}) \
985
  .eq('id', notes_id) \
986
- .eq('user_id', user.id) \ # Double-check ownership
987
  .execute()
988
 
989
  if update_res.error:
 
969
  'content-type': 'audio/mpeg',
970
  'cache-control': '3600',
971
  'upsert': 'true',
972
+ 'owner': user.id
973
  }
974
  )
975
 
 
983
  update_res = supabase.table('notes') \
984
  .update({'tts_audio_url': audio_url}) \
985
  .eq('id', notes_id) \
986
+ .eq('user_id', user.id) \
987
  .execute()
988
 
989
  if update_res.error: