Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 41f4e59

Browse files
committed
1 parent ad5bf87 commit 41f4e59

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ KAFKA_CLIENT_CERT_KEY=$(eval "echo \$${ENV}_KAFKA_CLIENT_CERT_KEY")
2828
KAFKA_URL=$(eval "echo \$${ENV}_KAFKA_URL")
2929
ZOO_KEEPER=$(eval "echo \$${ENV}_ZOO_KEEPER")
3030
TOPIC=$(eval "echo \$${ENV}_TOPIC")
31-
MONGODB_URI=$(eval "echo \$${ENV}_MONGODB_URI")
3231

3332
LOG_LEVEL=$(eval "echo \$${ENV}_LOG_LEVEL")
3433
NODE_ENV=$(eval "echo \$${ENV}_NODE_ENV")

utils/db-helper.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,6 @@ async function scan(model, scanParams) {
2626
});
2727
}
2828

29-
/**
30-
* Get single data by scan parameters
31-
* @param {Object} model The dynamoose model to scan
32-
* @param {Object} scanParams The scan parameters object
33-
* @returns {Promise<void>}
34-
*/
35-
async function scanOne(model, scanParams) {
36-
return await new Promise((resolve, reject) => {
37-
model.scan(scanParams).consistent().all().exec((err, result) => {
38-
if (err) {
39-
reject(err);
40-
}
41-
42-
return resolve(result[0]);
43-
});
44-
});
45-
}
46-
4729
module.exports = {
48-
scan,
49-
scanOne
50-
};
30+
scan
31+
};

0 commit comments

Comments
 (0)