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
(manually got from commit 199f6d5)
  • Loading branch information
AleX83Xpert committed Oct 15, 2024
1 parent 7b76a26 commit 842b9d6
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 @@ -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 },
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 },
}, {
sortBy: ['isApproved_DESC', 'createdAt_ASC'], // sorting order is essential here
first: 1,
Expand Down

0 comments on commit 842b9d6

Please sign in to comment.