Regression bug: Give systems sorted by their number

This commit is contained in:
Chrystian Huot 2020-03-13 10:26:20 -04:00
parent 41b2f26040
commit 0a5008e30e
2 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,9 @@
function getSystems(models) { function getSystems(models) {
return async () => { return async () => {
const systems = await models.rdioScannerSystem.findAll(); const systems = await models.rdioScannerSystem.findAll({
order: [['system', 'ASC']],
});
return systems; return systems;
}; };

View file

@ -58,7 +58,7 @@ class TrunkRecorderSystemUpload {
} }
const emit = async () => { const emit = async () => {
const systems = await models.rdioScannerSystem.findAll(); const systems = await models.rdioScannerSystem.findAll({ order: [['system', 'ASC']]});
pubsub.publish('rdioScannerSystems', { rdioScannerSystems: systems }); pubsub.publish('rdioScannerSystems', { rdioScannerSystems: systems });
}; };