diff --git a/.gitignore b/.gitignore index f5b1748..e18745b 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,6 @@ env/ # VS Code Config Directory .vscode/ + +# terraform.exe +terraform.exe diff --git a/functions/calculateUserDailyDigest.js b/functions/calculateUserDailyDigest.js index e4db7b2..e07bd23 100644 --- a/functions/calculateUserDailyDigest.js +++ b/functions/calculateUserDailyDigest.js @@ -142,7 +142,7 @@ const processUserSubscriptions = async ( } }; -const handler = async (event) => { +export const handler = async (event) => { const { ES_SEARCH_API, EMAIL_MAX_POSTS, diff --git a/serverless.yml b/serverless.yml index c77753e..487a951 100644 --- a/serverless.yml +++ b/serverless.yml @@ -342,7 +342,7 @@ functions: SUBSCRIPTIONS_TABLE: ${self:custom.subscriptionsTableName} USER_DIGEST_LAMBDA_NAME: ${self:service}-${self:custom.stage}-calculateUserDailyDigest calculateUserDailyDigest: - handler: functions/calculateUserDailyDigest.exportedFunctions.handler + handler: functions/calculateUserDailyDigest.handler description: Calculates and collates previous day's new posts which matching the user's daily subscriptions role: calculateUserDailyDigestLambdaRole environment: