mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
Regression bug: Give systems sorted by their number
This commit is contained in:
parent
41b2f26040
commit
0a5008e30e
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue