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);
const hasPurchaseRequests = await models.TicketRequest.count({
ticketFk: id,
isOk: true
ticketFk: id
}, myOptions);
const isEmpty = !hasSales && !hasPackages &&