From 9c889b9e0bf9740575fa276ad7db35ba5550cb23 Mon Sep 17 00:00:00 2001 From: shri Date: Wed, 4 Sep 2024 20:38:28 +0200 Subject: [PATCH] Fix file path --- src/app/domain/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/domain/accounts/utils.py b/src/app/domain/accounts/utils.py index af69558f..9da10204 100644 --- a/src/app/domain/accounts/utils.py +++ b/src/app/domain/accounts/utils.py @@ -13,7 +13,7 @@ def get_signed_user_profile_pic_url(user_id: UUID, extension: str = "webp", expi s3_client = boto3.client("s3") signed_url = s3_client.generate_presigned_url( ClientMethod="get_object", - Params={"Bucket": app_s3_bucket_name, "Key": "users/avatars/{user_id}.webp"}, + Params={"Bucket": app_s3_bucket_name, "Key": f"tenants/users/avatars/{user_id}.webp"}, ExpiresIn=expiration, ) return signed_url