fix(services): add ordering to GuaribasInstance query in GBCoreService
This commit is contained in:
parent
16b7da9bbf
commit
c77a7e89c6
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);
|
||||
} else {
|
||||
const options = { where: { state: 'active' } };
|
||||
return await GuaribasInstance.findAll(options);
|
||||
const options = { where: { state: 'active' } ,
|
||||
|
||||
order: [['instanceId', 'ASC']]};
|
||||
return await GuaribasInstance.findAll(options as any);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue