Merge pull request #75 from HideyoshiSolutions/devel

Devel - Fixes ProfilePicture Upload
This commit is contained in:
2024-05-26 02:34:11 -03:00
committed by GitHub

View File

@@ -200,7 +200,7 @@ export class AuthService {
fileType: string, fileType: string,
): Observable<string | null> { ): Observable<string | null> {
return this.http return this.http
.post<{ presigned_url: string; file_key: string }>( .post<{ signed_url: string; file_key: string }>(
this.BACKEND_PATH + this.BACKEND_PATH +
'/user/profile-picture?fileType=' + '/user/profile-picture?fileType=' +
fileType, fileType,
@@ -213,8 +213,8 @@ export class AuthService {
.pipe( .pipe(
first(), first(),
map((res) => { map((res) => {
if (!!res && !!res.presigned_url) { if (!!res && !!res.signed_url) {
return res.presigned_url; return res.signed_url;
} }
return null; return null;
}), }),