2996-route_tickets_recalc #677

Merged
joan merged 3 commits from 2996-route_tickets_recalc into dev 2021-06-28 09:18:20 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 3bfc08b117 - Show all commits

View File

@ -48,12 +48,12 @@ module.exports = Self => {
scope: { scope: {
fields: ['id', 'm3', 'numberPlate'] fields: ['id', 'm3', 'numberPlate']
} }
} },
], ]
}; };
summary.route = await Self.app.models.Route.findOne(filter); summary.route = await Self.app.models.Route.findOne(filter);
summary.tickets = await Self.app.models.Route.getTickets({id: id}); summary.tickets = await Self.app.models.Route.getTickets({id: id, order: 'priority ASC'});
return summary; return summary;
}; };