From 5d278f416f4bd5b9d7f9a255c7fd0a082c0bc38b Mon Sep 17 00:00:00 2001 From: joan Date: Tue, 18 May 2021 10:04:01 +0200 Subject: [PATCH] Removed transaction block --- modules/monitor/back/methods/sales-monitor/deleteOrders.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/monitor/back/methods/sales-monitor/deleteOrders.js b/modules/monitor/back/methods/sales-monitor/deleteOrders.js index 9b15f75e5..11fbf2c35 100644 --- a/modules/monitor/back/methods/sales-monitor/deleteOrders.js +++ b/modules/monitor/back/methods/sales-monitor/deleteOrders.js @@ -27,11 +27,6 @@ module.exports = Self => { if (typeof options == 'object') Object.assign(myOptions, options); - if (!myOptions.transaction) { - tx = await Self.beginTransaction({}); - myOptions.transaction = tx; - } - try { const deleted = models.Order.destroyAll({ id: {inq: deletes}