8144-devToTest_2444 #3137

Merged
alexm merged 90 commits from 8144-devToTest_2444 into test 2024-10-22 06:07:15 +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 = [];
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);
if (tx) await tx.commit();