Removed transaction block
This commit is contained in:
parent
bc7f2d8193
commit
6ec28cbc86
|
@ -27,11 +27,6 @@ module.exports = Self => {
|
||||||
if (typeof options == 'object')
|
if (typeof options == 'object')
|
||||||
Object.assign(myOptions, options);
|
Object.assign(myOptions, options);
|
||||||
|
|
||||||
if (!myOptions.transaction) {
|
|
||||||
tx = await Self.beginTransaction({});
|
|
||||||
myOptions.transaction = tx;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const deleted = models.Order.destroyAll({
|
const deleted = models.Order.destroyAll({
|
||||||
id: {inq: deletes}
|
id: {inq: deletes}
|
||||||
|
|
Loading…
Reference in New Issue