Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 454 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 454 Bytes

AWS Lambda: Apply For Reward

Checks the APIs for if a competition has been entered.

The event object has to be of following structure:

event.Records[0].Sns.message = {
    ...
    "token": String,
    "id": String
}

Enviroment variables

  • DDB_REWARDS_TABLE with information about rewards.
  • DDB_ENTRIES_TABLE with information about past rewards claims.

Deployment

Deploy with npm run deploy:{env}.

Tests

Yet to be written.