Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b01b477

Browse files
authoredJun 23, 2020
Update reconsiler-dd.js
1 parent effe366 commit b01b477

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
 

‎src/reconsiler-dd.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ const pgConnectionString = `postgresql://${pgOptions.user}:${pgOptions.password}
1515
const port = 3000
1616
//===============RECONSILER2 DYNAMODB CODE STARTS HERE ==========================
1717

18-
async function callReconsiler2()
19-
{
20-
console.log("inside 2");
21-
await docClient.scan(params, onScan);
22-
return
23-
}
24-
2518
var docClient = new AWS.DynamoDB.DocumentClient({
2619
region: 'us-east-1',
2720
convertEmptyValues: true
@@ -39,7 +32,13 @@ ElapsedTime = config.DYNAMODB.DD_ElapsedTime
3932
":time_2": Date.now()
4033
}
4134
}
42-
35+
36+
async function callReconsiler2()
37+
{
38+
console.log("inside 2");
39+
await docClient.scan(params, onScan);
40+
return
41+
}
4342
async function onScan(err, data) {
4443
if (err) {
4544
logger.error("Unable to scan the table. Error JSON:", JSON.stringify(err, null, 2));

0 commit comments

Comments
 (0)
Please sign in to comment.