Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayan-Bandyopadhyay committed Oct 16, 2024
1 parent 28c5cb2 commit bf0bc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_session_recording_download_link(self, session: Session) -> Optional[str]
def get_session_file_upload_link(self, session: Session, file_name: str) -> Optional[str]:
response = (
self.supabase.storage.get_bucket("session_files")
.create_signed_upload_url(f"{session.app_id}/{session.id}/{file_name}", expires_in=60)
.create_signed_upload_url(f"{session.app_id}/{session.id}/{file_name}")
)
if response:
return response["signed_url"]
Expand Down Expand Up @@ -227,7 +227,7 @@ def get_trace_upload_link(self, app_id: str) -> Optional[str]:
trace_id = str(uuid.uuid4())
response = (
self.supabase.storage.get_bucket("traces")
.create_signed_upload_url(f"{app_id}/{trace_id}.zip", expires_in=60)
.create_signed_upload_url(f"{app_id}/{trace_id}.zip")
)
if response:
return response["signed_url"]
Expand Down

0 comments on commit bf0bc14

Please sign in to comment.