Skip to content

Commit

Permalink
fix: add missing return statements to download and upload url
Browse files Browse the repository at this point in the history
  • Loading branch information
raksiv committed May 2, 2023
1 parent 5caf046 commit af9fc32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nitric/api/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ async def delete(self):

async def upload_url(self, expiry: int = 600):
"""Get a temporary writable URL to this file."""
await self.sign_url(mode=FileMode.WRITE, expiry=expiry)
return await self.sign_url(mode=FileMode.WRITE, expiry=expiry)

async def download_url(self, expiry: int = 600):
"""Get a temporary readable URL to this file."""
await self.sign_url(mode=FileMode.READ, expiry=expiry)
return await self.sign_url(mode=FileMode.READ, expiry=expiry)

async def sign_url(self, mode: FileMode = FileMode.READ, expiry: int = 3600):
"""Generate a signed URL for reading or writing to a file."""
Expand Down

0 comments on commit af9fc32

Please sign in to comment.