refs #6264 perf: rename variable when destroy ids
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1939c65fab
commit
9316c31180
|
@ -40,11 +40,11 @@ module.exports = Self => {
|
|||
if (!targetDms || ! claimDms)
|
||||
throw new UserError('Try again');
|
||||
|
||||
const claimDestroyed = await claimDms.destroy(myOptions);
|
||||
const claimDmsDestroyed = await claimDms.destroy(myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
|
||||
return claimDestroyed;
|
||||
return claimDmsDestroyed;
|
||||
} catch (e) {
|
||||
if (tx) await tx.rollback();
|
||||
throw e;
|
||||
|
|
|
@ -38,11 +38,11 @@ module.exports = Self => {
|
|||
if (!targetDms || !clientDms)
|
||||
throw new UserError('Try again');
|
||||
|
||||
const clientDestroyed = await clientDms.destroy(myOptions);
|
||||
const clientDmsDestroyed = await clientDms.destroy(myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
|
||||
return clientDestroyed;
|
||||
return clientDmsDestroyed;
|
||||
} catch (e) {
|
||||
if (tx) await tx.rollback();
|
||||
throw e;
|
||||
|
|
|
@ -38,11 +38,11 @@ module.exports = Self => {
|
|||
if (!targetDms || !ticketDms)
|
||||
throw new UserError('Try again');
|
||||
|
||||
const ticketDestroyed = await ticketDms.destroy(myOptions);
|
||||
const ticketDmsDestroyed = await ticketDms.destroy(myOptions);
|
||||
|
||||
if (tx) await tx.commit();
|
||||
|
||||
return ticketDestroyed;
|
||||
return ticketDmsDestroyed;
|
||||
} catch (e) {
|
||||
if (tx) await tx.rollback();
|
||||
throw e;
|
||||
|
|
|
@ -39,10 +39,10 @@ module.exports = Self => {
|
|||
if (!targetDms || !WorkerDms)
|
||||
throw new UserError('Try again');
|
||||
|
||||
const workerDestroyed = await WorkerDms.destroy(myOptions);
|
||||
const workerDmsDestroyed = await WorkerDms.destroy(myOptions);
|
||||
if (tx) await tx.commit();
|
||||
|
||||
return workerDestroyed;
|
||||
return workerDmsDestroyed;
|
||||
} catch (e) {
|
||||
await tx.rollback();
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue