From aa94e76cbca3212ca1eccaa99c0d7fdb3f967cba Mon Sep 17 00:00:00 2001 From: baalmart Date: Fri, 24 Jan 2025 20:34:58 +0300 Subject: [PATCH] more stable approach for paths configuration --- src/auth-service/utils/common/mailer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth-service/utils/common/mailer.js b/src/auth-service/utils/common/mailer.js index 1f1b4554bc..a2f0a30998 100644 --- a/src/auth-service/utils/common/mailer.js +++ b/src/auth-service/utils/common/mailer.js @@ -21,8 +21,8 @@ const processString = (inputString) => { return uppercasedString; }; -// const projectRoot = path.join(__dirname, "..", "..", ".."); // Go three levels up -const projectRoot = "/usr/src/app"; +const projectRoot = path.join(__dirname, "..", ".."); // Go two levels up +// const projectRoot = "/usr/src/app"; const imagePath = path.join(projectRoot, "config", "images"); let attachments = [