Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const putObj = Bluebird.promisify(docClient.put, { context: docClient })
- // ... a promise chain collecting information...
- const params = {
- TableName: 'my_table',
- Item: {
- name: itemName
- }
- }
- return putObj(params)
- .then((data) => {
- if (Ramda.equals(data, {})) {
- // ... send notification here
- .catch((err) => {
- throw err
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement