oneday-core
Advanced tools
Comparing version 1.0.39 to 1.0.40
@@ -112,3 +112,3 @@ const aws = require('aws-sdk'); | ||
if (isPublish === true) { | ||
await resource.publishToTopic(topicName, enums.event_type.CREATE, params, requestId, []); | ||
await resource.publishToTopic(topicName, enums.event_type.CREATE, params.Item, requestId, []); | ||
} | ||
@@ -137,2 +137,4 @@ return result; | ||
params.ReturnValues = 'UPDATED_NEW'; | ||
const result = await dynamoDb.update(params).promise(); | ||
@@ -139,0 +141,0 @@ console.log('Updated table: ' + params.TableName); |
{ | ||
"name": "oneday-core", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "Basic AWS util functions to ease development.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -76,3 +76,3 @@ 'use strict'; | ||
const result = await sns.publish(params); | ||
const result = await sns.publish(params).promise(); | ||
console.log(result); | ||
@@ -79,0 +79,0 @@ |
24672
661