fix(services): add ordering to GuaribasInstance query in GBCoreService

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-03-30 00:20:44 -03:00
parent 16b7da9bbf
commit c77a7e89c6

View file

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