sending the profile image in presigned url

This commit is contained in:
2025-11-28 17:47:43 +05:30
parent 6147b0f476
commit 6cac8fb163
3 changed files with 23 additions and 8 deletions

View File

@@ -125,6 +125,13 @@ export class HostService {
}
}
}
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.logoPath) {
const key = host.logoPath.startsWith('http')