route.summary order by priority
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
320c04b2d3
commit
3bfc08b117
|
@ -48,12 +48,12 @@ module.exports = Self => {
|
|||
scope: {
|
||||
fields: ['id', 'm3', 'numberPlate']
|
||||
}
|
||||
}
|
||||
],
|
||||
},
|
||||
]
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue