From fe966298ba81b6cb870b88a05e814db989729ffa Mon Sep 17 00:00:00 2001 From: Katy Huang Date: Mon, 29 Apr 2024 21:35:12 -0700 Subject: [PATCH] change path for certs --- apps/server/src/functions/cron/getWeeklyHandler.ts | 2 +- apps/server/src/functions/cron/updateDailyHandler.ts | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/server/src/functions/cron/getWeeklyHandler.ts b/apps/server/src/functions/cron/getWeeklyHandler.ts index 03db69a5..a9b0ab94 100644 --- a/apps/server/src/functions/cron/getWeeklyHandler.ts +++ b/apps/server/src/functions/cron/getWeeklyHandler.ts @@ -21,7 +21,7 @@ const sslConfig = isProduction ? { rejectUnauthorized: false, ca: fs.readFileSync( - path.join(__dirname, "../../../../../certs", "global-bundle.pem"), + path.join(__dirname, "certs", "global-bundle.pem"), ), } : null; diff --git a/apps/server/src/functions/cron/updateDailyHandler.ts b/apps/server/src/functions/cron/updateDailyHandler.ts index 86341fff..40ce4e3a 100644 --- a/apps/server/src/functions/cron/updateDailyHandler.ts +++ b/apps/server/src/functions/cron/updateDailyHandler.ts @@ -21,15 +21,10 @@ const sslConfig = isProduction ? { rejectUnauthorized: false, ca: fs.readFileSync( - path.join(__dirname, "../../../../../certs", "global-bundle.pem"), + path.join(__dirname, "certs", "global-bundle.pem"), ), } : null; -console.log( - fs.readFileSync( - path.join(__dirname, "../../../../../certs", "global-bundle.pem"), - ), -); export const main = async (_event, _context) => { try { const db = createDrizzle({