refs #6264 perf: rename variable when destroy ids
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Javier Segarra 2023-12-14 12:36:36 +01:00
parent 1939c65fab
commit 9316c31180
4 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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