sending the profile image in presigned url
This commit is contained in:
@@ -1389,6 +1389,14 @@ export class MinglarService {
|
||||
host.logoPath = await getPresignedUrl(bucket, key);
|
||||
}
|
||||
|
||||
if (host.user) {
|
||||
const key = host.user.profileImage.startsWith("http")
|
||||
? host.user.profileImage.split(".com/")[1]
|
||||
: host.user.profileImage;
|
||||
|
||||
host.user.profileImage = await getPresignedUrl(bucket, key);
|
||||
}
|
||||
|
||||
if (host.hostParent?.length) {
|
||||
const parent = host.hostParent[0]; // since you allow only 1 parent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user