Fixes ProfilePicture Upload
This commit is contained in:
@@ -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;
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user