fix(services): add ordering to GuaribasInstance query in GBCoreService
Some checks failed
GBCI / build (push) Has been cancelled

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-03-29 22:11:57 -03:00
parent 0d89750a57
commit 905dc5642e

View file

@ -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);