diff --git a/apps/condo/domains/resident/schema/RegisterResidentService.js b/apps/condo/domains/resident/schema/RegisterResidentService.js index 3590221f38a..8926f89b884 100644 --- a/apps/condo/domains/resident/schema/RegisterResidentService.js +++ b/apps/condo/domains/resident/schema/RegisterResidentService.js @@ -92,7 +92,7 @@ const RegisterResidentService = new GQLCustomSchema('RegisterResidentService', { const [property] = await PropertyAPI.getAll(context, { addressKey: addressItem.addressKey, - organization: { type: MANAGING_COMPANY_TYPE }, + // organization: { type: MANAGING_COMPANY_TYPE }, deletedAt: null, }, { sortBy: ['isApproved_DESC', 'createdAt_ASC'], first: 1 }, diff --git a/apps/condo/domains/resident/tasks/residentTicket.task.js b/apps/condo/domains/resident/tasks/residentTicket.task.js index 657caf1ecc8..fd8d5cc8471 100644 --- a/apps/condo/domains/resident/tasks/residentTicket.task.js +++ b/apps/condo/domains/resident/tasks/residentTicket.task.js @@ -24,7 +24,7 @@ async function manageResidentToPropertyAndOrganizationConnections (address, dv, const [oldestProperty] = await PropertyAPI.getAll(context, { address_i: address, deletedAt: null, - organization: { type: MANAGING_COMPANY_TYPE }, + // organization: { type: MANAGING_COMPANY_TYPE }, }, { sortBy: ['isApproved_DESC', 'createdAt_ASC'], // sorting order is essential here first: 1,