From a2b9a60e1b46c67c2079732b7e7051a0f1f09548 Mon Sep 17 00:00:00 2001 From: Vitor Hideyoshi Nakazone Batista Date: Sun, 26 May 2024 02:22:13 -0300 Subject: [PATCH] Fixes ProfilePicture Upload --- src/app/shared/service/auth.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/shared/service/auth.service.ts b/src/app/shared/service/auth.service.ts index 737d258..55eb581 100644 --- a/src/app/shared/service/auth.service.ts +++ b/src/app/shared/service/auth.service.ts @@ -200,7 +200,7 @@ export class AuthService { fileType: string, ): Observable { return this.http - .post<{ presigned_url: string; file_key: string }>( + .post<{ signed_url: string; file_key: string }>( this.BACKEND_PATH + '/user/profile-picture?fileType=' + fileType, @@ -213,8 +213,8 @@ export class AuthService { .pipe( first(), map((res) => { - if (!!res && !!res.presigned_url) { - return res.presigned_url; + if (!!res && !!res.signed_url) { + return res.signed_url; } return null; }),