fix(services): add ordering to GuaribasInstance query in GBCoreService
Some checks failed
GBCI / build (push) Failing after 1h49m6s
Some checks failed
GBCI / build (push) Failing after 1h49m6s
This commit is contained in:
parent
e300fcda60
commit
081cd8a8b6
1 changed files with 4 additions and 2 deletions
|
@ -282,8 +282,10 @@ export class GBCoreService implements IGBCoreService {
|
||||||
};
|
};
|
||||||
return await GuaribasInstance.findAll(options as any);
|
return await GuaribasInstance.findAll(options as any);
|
||||||
} else {
|
} else {
|
||||||
const options = { where: { state: 'active' } };
|
const options = { where: { state: 'active' } ,
|
||||||
return await GuaribasInstance.findAll(options);
|
|
||||||
|
order: [['instanceId', 'ASC']]};
|
||||||
|
return await GuaribasInstance.findAll(options as any);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue