delete: transacción innecesaria
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
859c084430
commit
4e8896202a
|
@ -31,11 +31,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 mdbApp = await models.MdbApp.findById(appName, null, myOptions);
|
const mdbApp = await models.MdbApp.findById(appName, null, myOptions);
|
||||||
const updatedMdbApp = await mdbApp.updateAttributes({
|
const updatedMdbApp = await mdbApp.updateAttributes({
|
||||||
|
|
Loading…
Reference in New Issue