Skip to content

Commit

Permalink
Merge pull request #85 from shikshalokam/master
Browse files Browse the repository at this point in the history
remove school from organisation
  • Loading branch information
aks30 authored May 26, 2022
2 parents 1cc8bb9 + dc80019 commit 5536f1d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions module/solutions/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2007,10 +2007,12 @@ module.exports = class SolutionsHelper {

//get the organisations from the userProfile
for (const org of userProfile["organisations"]) {
let orgData = {};
orgData.orgName = org.orgName;
orgData.organisationId = org.organisationId;
organisation.push(orgData);
if ( !org.isSchool ) {
let orgData = {};
orgData.orgName = org.orgName;
orgData.organisationId = org.organisationId;
organisation.push(orgData);
}
}

let updateQuery = {};
Expand Down

0 comments on commit 5536f1d

Please sign in to comment.