From af9fc32b438c7e13a397da86fcb196ef2305f11d Mon Sep 17 00:00:00 2001 From: Rak Siva Date: Tue, 2 May 2023 11:40:58 -0600 Subject: [PATCH] fix: add missing return statements to download and upload url --- nitric/api/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nitric/api/storage.py b/nitric/api/storage.py index 7f08d14..ccb7cd5 100644 --- a/nitric/api/storage.py +++ b/nitric/api/storage.py @@ -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."""