fix: refs #7906 remake method #3109

Merged
carlossa merged 8 commits from 7906-notDeleteZone into dev 2024-10-18 08:33:04 +00:00
1 changed files with 0 additions and 2 deletions
Showing only changes of commit 3f3b936255 - Show all commits

View File

@ -50,14 +50,12 @@ module.exports = Self => {
}
}
};
const promises = [];
carlossa marked this conversation as resolved
Review

Quitar

Quitar
const ticketList = await models.Ticket.find(filter, myOptions);
if (ticketList.length > 0)
throw new UserError('There are tickets for this area, delete them first');
await Promise.all(promises);
await models.Zone.destroyById(id, myOptions);
carlossa marked this conversation as resolved Outdated
Outdated
Review

Quitar

Quitar
if (tx) await tx.commit();