Skip to content

Commit

Permalink
hotfix(condo): temporary allow residents to bind to sp (#4504)
Browse files Browse the repository at this point in the history
(cherry picked from commit 199f6d5)
  • Loading branch information
dkoviazin authored and sitozzz committed Nov 11, 2024
1 parent de93533 commit 697848f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion apps/condo/domains/resident/tasks/residentTicket.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 697848f

Please sign in to comment.