From 0641508086d391f3358c908cb24cee7f395ce59c Mon Sep 17 00:00:00 2001 From: leemhoon00 Date: Sun, 17 Nov 2024 22:03:51 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9E=90=EC=B2=B4=EC=84=9C=EB=AA=85=20?= =?UTF-8?q?=EC=9D=B8=EC=A6=9D=EC=84=9C=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/database.ts | 3 +++ src/index.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/db/database.ts b/src/db/database.ts index 6891534..75de8fb 100644 --- a/src/db/database.ts +++ b/src/db/database.ts @@ -10,6 +10,9 @@ const dialect = new PostgresDialect({ password: process.env.DATABASE_PASSWORD, port: Number(process.env.DATABASE_PORT), max: Number(process.env.DATABASE_MAX), + ssl: { + rejectUnauthorized: false, + }, }), }); diff --git a/src/index.ts b/src/index.ts index 78113cd..ef86aa4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,3 +17,8 @@ export const handler: Handler = async () => { specialCourseService.saveAllCourse(), ]); }; + +handler('event', 'context' as any, (error, result) => { + console.log('error:', error); + console.log('result:', result); +});