From d948c59fdcf634a6f856f6415a30d7eccc533ca6 Mon Sep 17 00:00:00 2001 From: Dmitry Koviazin Date: Thu, 21 Mar 2024 15:31:53 +0500 Subject: [PATCH] hotfix(condo): temporary allow residents to bind to sp (#4504) (cherry picked from commit 199f6d5a09522adaeeab68c4a02f405f03467a8f) (cherry picked from commit e02e45421fa51fa74285ebd0719ee0397c1673ac) --- 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 77368a47388..cb87afaf9f9 100644 --- a/apps/condo/domains/resident/schema/RegisterResidentService.js +++ b/apps/condo/domains/resident/schema/RegisterResidentService.js @@ -93,7 +93,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, }, 'id', diff --git a/apps/condo/domains/resident/tasks/residentTicket.task.js b/apps/condo/domains/resident/tasks/residentTicket.task.js index 4c4af65d45a..07fc12545ef 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 }, }, 'id', { sortBy: ['isApproved_DESC', 'createdAt_ASC'], // sorting order is essential here first: 1,