Skip to content

Commit

Permalink
Merge pull request #1863 from bcgov/fix/change-searchAll
Browse files Browse the repository at this point in the history
Adds query params for searchAll endpoint
  • Loading branch information
alexmcdermid authored May 7, 2024
2 parents 537a445 + fe6c426 commit 45f193b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/sdc/sdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function getSnapshotFundingDataForSchool(req, res) {

async function getAllCollectionsForSchool(req, res) {
try {
const data = await getData(`${config.get('sdc:schoolCollectionURL')}/searchAll/${req.params.schoolID}`);
const data = await getData(`${config.get('sdc:schoolCollectionURL')}/searchAll?schoolID=${req.params.schoolID}`);
return res.status(HttpStatus.OK).json(data);
} catch (e) {
await logApiError(e, 'getAllCollectionsForSchool', 'Error getting collections for this school');
Expand Down

0 comments on commit 45f193b

Please sign in to comment.