Skip to content

Commit

Permalink
Merge pull request #79 from ScottLogic/SDE-171-test-calculate-user-da…
Browse files Browse the repository at this point in the history
…ily-digest

Fixed calculateUserDailyDigest handler export, added TF to gitignore
  • Loading branch information
antreaspas authored Oct 21, 2019
2 parents 46218b6 + 6f79ec2 commit 2ed8eae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ env/

# VS Code Config Directory
.vscode/

# terraform.exe
terraform.exe
2 changes: 1 addition & 1 deletion functions/calculateUserDailyDigest.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const processUserSubscriptions = async (
}
};

const handler = async (event) => {
export const handler = async (event) => {
const {
ES_SEARCH_API,
EMAIL_MAX_POSTS,
Expand Down
2 changes: 1 addition & 1 deletion serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2ed8eae

Please sign in to comment.