Skip to content

Commit

Permalink
Merge pull request #393 from bcgov/ofmcc-6394-missing-facilities-bug
Browse files Browse the repository at this point in the history
ofmcc-6394 - add pageSize to facilities query in organization
  • Loading branch information
vietle-cgi authored Oct 29, 2024
2 parents aa7b4f4 + 0436cd1 commit e256b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/organizations.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function getOrganizationFacilities(req, res) {
}

async function getRawOrganizationFacilities(organizationId) {
const operation = `accounts?$select=accountid,accountnumber,name,ofm_program,ccof_accounttype&$filter=(_parentaccountid_value eq ${organizationId}) and (statecode eq 0) and (ofm_program ne ${OFM_PROGRAM_CODES.CCOF})`
const operation = `accounts?$select=accountid,accountnumber,name,ofm_program,ccof_accounttype&$filter=(_parentaccountid_value eq ${organizationId}) and (statecode eq 0) and (ofm_program ne ${OFM_PROGRAM_CODES.CCOF})&pageSize=500`
const response = await getOperation(operation)
const orgFacilities = []
response?.value?.forEach((item) => orgFacilities.push(new MappableObjectForFront(item, FacilityMappings).toJSON()))
Expand Down

0 comments on commit e256b01

Please sign in to comment.