summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--worker.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.js b/worker.js
index 4fcb0bf..1efcba7 100644
--- a/worker.js
+++ b/worker.js
@@ -192,8 +192,8 @@ var RABBITMQ_URI = process.env.RABBITMQ_URI || "amqp://localhost",
// load records into db
try {
console.log("inserting batch into db");
- await seq.transaction({ autocommit: false }, (transaction) => {
- return Promise.all([
+ await seq.transaction({ autocommit: false }, async (transaction) => {
+ await Promise.all([
model.ParticipantExt.bulkCreate(participant_ext_records, {
updateOnDuplicate: [], // all
transaction: transaction