Skip to content

Commit

Permalink
remove schools from organisation in solution
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanka-TL committed May 26, 2022
1 parent 61a3a71 commit c9128bd
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 c9128bd

Please sign in to comment.