fix(services): add ordering to GuaribasInstance query in GBCoreService
Some checks failed
GBCI / build (push) Failing after 1h49m6s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-03-30 00:20:44 -03:00
parent e300fcda60
commit 081cd8a8b6

View file

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