route.summary order by priority
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-06-24 10:06:31 +02:00
parent 320c04b2d3
commit 3bfc08b117
1 changed files with 3 additions and 3 deletions

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;
}; };