Removed transaction block
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-05-18 10:04:01 +02:00
parent bf250b77ef
commit 5d278f416f
1 changed files with 0 additions and 5 deletions

View File

@ -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}