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) {
return async () => {
const systems = await models.rdioScannerSystem.findAll();
const systems = await models.rdioScannerSystem.findAll({
order: [['system', 'ASC']],
});
return systems;
};

View file

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