Removed transaction block
This commit is contained in:
parent
bc7f2d8193
commit
6ec28cbc86
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue