bug fixed

This commit is contained in:
Gerard 2018-12-14 13:53:30 +01:00
parent 6203abafa6
commit ed8ac4652e
1 changed files with 1 additions and 1 deletions

View File

@ -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);