diff --git a/apps/utility/src/utilities.service.ts b/apps/utility/src/utilities.service.ts index a1c66bdd8..ae299f334 100644 --- a/apps/utility/src/utilities.service.ts +++ b/apps/utility/src/utilities.service.ts @@ -53,7 +53,7 @@ export class UtilitiesService { try { const uuid = uuidv4(); const uploadResult:S3.ManagedUpload.SendData = await this.awsService.storeObject(payload.persistent, uuid, payload.storeObj); - const url: string = `https://${uploadResult.Bucket}.s3.${process.env.AWS_S3_STOREOBJECT_REGION}.amazonaws.com/${uploadResult.Key}`; + const url: string = `${process.env.SHORTENED_URL_DOMAIN}/${uploadResult.Key}`; return url; } catch (error) { this.logger.error(error);