fix non-returning promise warning

This commit is contained in:
Bilal Catic
2019-08-21 06:45:43 +02:00
parent 5a0426cc12
commit 27cbe1f51c
4 changed files with 74 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
const db = require('../../models/index');
const bulkWriteChanges = ((changes) => {
const bulkWriteChanges = (changes) => {
const changeLogsForDB = [];
changes.forEach((change) => {
@@ -48,7 +48,7 @@ const bulkWriteChanges = ((changes) => {
return db.bookingReservationChangeLog.bulkCreate(changeLogsForDB);
// console.log(changeLogsForDB);
// return new Promise((resolve) => resolve());
});
};
module.exports = {
bulkWriteChanges,