feat(ticket): isEmpty ticketRequest not necessary isOk

This commit is contained in:
Alex Moreno 2022-02-03 11:51:50 +01:00
parent fe13b33efc
commit dc47af7224
1 changed files with 1 additions and 2 deletions

View File

@ -42,8 +42,7 @@ module.exports = function(Self) {
}, myOptions); }, myOptions);
const hasPurchaseRequests = await models.TicketRequest.count({ const hasPurchaseRequests = await models.TicketRequest.count({
ticketFk: id, ticketFk: id
isOk: true
}, myOptions); }, myOptions);
const isEmpty = !hasSales && !hasPackages && const isEmpty = !hasSales && !hasPackages &&