feat(ticket): isEmpty ticketRequest not necessary isOk
This commit is contained in:
parent
fe13b33efc
commit
dc47af7224
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue