We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ebb9f5 commit 301a309Copy full SHA for 301a309
src/reconsiler-dd.js
@@ -46,7 +46,8 @@ async function onScan(err, data) {
46
} else {
47
try {
48
console.log("Scan succeeded.");
49
- data.Items.forEach(async function (item) {
+ await Promise.all(data.Items.map(async (items) => {
50
+ // data.Items.forEach(async function (item) {
51
//console.log(item.payloadseqid);
52
let retval;
53
@@ -68,7 +69,7 @@ async function onScan(err, data) {
68
69
logger.info(`Reconsiler2 Posted Payload : ${JSON.stringify(item.pl_document)}`)
70
}
71
logger.info(`after retval condition`)
- });
72
+ }));
73
if (typeof data.LastEvaluatedKey != "undefined") {
74
console.log("Scanning for more...");
75
// logger.info(`params.ExclusiveStartKey : ${params.ExclusiveStartKey}`)
0 commit comments