fix: getting orgs without verifying scope

This commit is contained in:
Grégoire Cutzach 2024-10-10 18:33:45 +02:00
parent 013e94e470
commit 1a89799192
No known key found for this signature in database
GPG Key ID: AA4155BE23C375E6

View File

@ -2034,9 +2034,8 @@ export class HomeDBManager extends EventEmitter {
const orgId = ws.org.id;
let orgQuery = this._buildOrgWithACLRulesQuery(scope, orgId, options);
orgQuery = this._addFeatures(orgQuery);
const orgQueryResult = await verifyEntity(orgQuery);
const org: Organization = orgQueryResult.data;
const orgQueryResult = await orgQuery.getRawAndEntities();
const org: Organization = orgQueryResult.entities[0];
// Get all the non-guest groups on the org.
const orgGroups = getNonGuestGroups(org);
// Get all the non-guest groups to be updated by the delta.