bug fixed
This commit is contained in:
parent
6203abafa6
commit
ed8ac4652e
|
@ -104,7 +104,7 @@ module.exports = Self => {
|
|||
}
|
||||
|
||||
let orderTickets = [];
|
||||
if (ctx.args.orderFk) {
|
||||
if (ctx.args && ctx.args.orderFk) {
|
||||
let ticketsToSearch = await Self.app.models.OrderTickets.find({where: {orderFk: filter.orderFk}});
|
||||
ticketsToSearch.forEach(ticket => {
|
||||
orderTickets.push(ticket.ticketFk);
|
||||
|
|
Loading…
Reference in New Issue