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); +});