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);
|
}, 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 &&
|
||||||
|
|
Loading…
Reference in New Issue