Skip to content

Commit

Permalink
change path for certs
Browse files Browse the repository at this point in the history
  • Loading branch information
KatyH820 committed Apr 30, 2024
1 parent 224be15 commit fe96629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/server/src/functions/cron/getWeeklyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 1 addition & 6 deletions apps/server/src/functions/cron/updateDailyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit fe96629

Please sign in to comment.