Skip to content

Commit

Permalink
Merge pull request #93 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 ef2895d + 1b0a4ba commit 6f70551
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions module/solutions/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,13 @@ 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 6f70551

Please sign in to comment.