Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tanerochris/fa6fadad317743e00c938f52f481f67b to your computer and use it in GitHub Desktop.
Save tanerochris/fa6fadad317743e00c938f52f481f67b to your computer and use it in GitHub Desktop.
/**
* Path: dynamoDB/getReportCompletionStatus/index.js
*/
const AWS = require('aws-sdk');
const ddb = new AWS.DynamoDB.DocumentClient({
region: 'eu-central-1'
});
/**
* Lamba function used to get the report status
* INPUT: user_id, partita_iva
* OUTPUT: status
*/
exports.handler = async (event, context, callback) => {
const partita_iva = event.partita_iva
callback(null, {
statusCode: 200,
body: { status: 'complete'},
headers: {
'Access-Control-Allow-Origin': "*"
},
});
};
function getCompletionStatus() {
// code to get completion status;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment