Skip to content

Commit

Permalink
Merge pull request #662 from credebl/hotfix/url-fix
Browse files Browse the repository at this point in the history
hotfix: add shorten url
  • Loading branch information
KulkarniShashank authored Apr 12, 2024
2 parents 9a48260 + 015b7fe commit 812d205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/utility/src/utilities.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 812d205

Please sign in to comment.