Skip to content

Commit

Permalink
fix: add api in download path
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Feb 18, 2023
1 parent 801001f commit 04bdc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/storage/jobs/helpers/notifyUserIfNecessary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const notifyUserIfNecessary = async ({
console.debug('rules.email', rules.EMAIL_NOTIFICATION);
const email = await getEmailFromOwner(db, owner);
if (size > 24) {
const link = `${process.env.DOMAIN}/download/u/${key}`;
const link = `${process.env.DOMAIN}/api/download/u/${key}`;
await EmailHandler.SendConversionLinkEmail(email, id, link);
} else if (rules.EMAIL_NOTIFICATION) {
await EmailHandler.SendConversionEmail(email, id, apkg);
Expand Down

0 comments on commit 04bdc2c

Please sign in to comment.