From 04bdc2c210d7b734bfb510c68cea1ddcbae2c944 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Sat, 18 Feb 2023 20:58:55 +0100 Subject: [PATCH] fix: add api in download path --- src/lib/storage/jobs/helpers/notifyUserIfNecessary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/storage/jobs/helpers/notifyUserIfNecessary.ts b/src/lib/storage/jobs/helpers/notifyUserIfNecessary.ts index 3c052fdf2..b4a26bca4 100644 --- a/src/lib/storage/jobs/helpers/notifyUserIfNecessary.ts +++ b/src/lib/storage/jobs/helpers/notifyUserIfNecessary.ts @@ -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);