From 842b9d661cdbf76d4424ccc50777121937a36ee7 Mon Sep 17 00:00:00 2001 From: AleX83Xpert Date: Fri, 2 Aug 2024 21:26:31 +0500 Subject: [PATCH] hotfix(condo): temporary allow residents to bind to sp (#4504) (manually got from commit 199f6d5a09522adaeeab68c4a02f405f03467a8f) --- apps/condo/domains/resident/schema/RegisterResidentService.js | 2 +- apps/condo/domains/resident/tasks/residentTicket.task.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,