fix(services): add ordering to GuaribasInstance query in GBCoreService
Some checks failed
GBCI / build (push) Has been cancelled
Some checks failed
GBCI / build (push) Has been cancelled
This commit is contained in:
parent
0d89750a57
commit
905dc5642e
1 changed files with 3 additions and 2 deletions
|
@ -277,9 +277,10 @@ export class GBCoreService implements IGBCoreService {
|
||||||
const options = {
|
const options = {
|
||||||
where: {
|
where: {
|
||||||
[Op.or]: and
|
[Op.or]: and
|
||||||
}
|
},
|
||||||
|
order: [['instanceId', 'ASC']]
|
||||||
};
|
};
|
||||||
return await GuaribasInstance.findAll(options);
|
return await GuaribasInstance.findAll(options as any);
|
||||||
} else {
|
} else {
|
||||||
const options = { where: { state: 'active' } };
|
const options = { where: { state: 'active' } };
|
||||||
return await GuaribasInstance.findAll(options);
|
return await GuaribasInstance.findAll(options);
|
||||||
|
|
Loading…
Add table
Reference in a new issue