Skip to content

Commit

Permalink
Merge pull request #70 from bcgov/michael-dev
Browse files Browse the repository at this point in the history
fixed auth backend
  • Loading branch information
suzalflueck authored Oct 25, 2023
2 parents ae6fa76 + 69cbae8 commit 6ad4add
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/src/routes/authority-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ async function getDistrictCodes(req) {
async function getAuthority(req, res) {
console.log("GET AUTHORITY");
const { id } = req.params;
console.log(req.params);
console.log("id: " + id);
const params = [
{
condition: null,
searchCriteriaList: [
{
key: "independentAuthorityId",
operation: "eq",
value: "9dcb1c79-d626-c708-6405-14b7df75a312", // Convert id to a string
value: id, // Convert id to a string
valueType: "UUID",
condition: "AND",
},
Expand Down Expand Up @@ -115,7 +115,6 @@ async function getAuthority(req, res) {
// const contactTypeCodes = await getDistrictCodes(req)
// const nonPublicContactTypeCodes = getNonPublicContactTypeCodes(contactTypeCodes)
// const districtDataPublic = removeContacts(districtDataResponse.data,nonPublicContactTypeCodes)

const authorityJSON = {
authorityData: authorityDataResponse.data,
authoritySchools: authoritySchoolsResponse.data.content,
Expand Down

0 comments on commit 6ad4add

Please sign in to comment.