Edit team/org DisplayName now update users.teams.teamDisplayName/users.orgs.orgDisplayName

This commit is contained in:
Ben0it-T 2021-12-22 11:49:50 +01:00
parent dc04beb61f
commit b876098dc4
3 changed files with 45 additions and 1 deletions

View file

@ -149,8 +149,9 @@ if (Meteor.isServer) {
check(org, Object);
check(orgDisplayName, String);
Org.update(org, {
$set: { orgDisplayName: orgDisplayNameorgShortName },
$set: { orgDisplayName: orgDisplayName },
});
Meteor.call('setUsersOrgsOrgDisplayName', org._id, orgDisplayName);
}
},
@ -208,6 +209,7 @@ if (Meteor.isServer) {
orgIsActive: orgIsActive,
},
});
Meteor.call('setUsersOrgsOrgDisplayName', org._id, orgDisplayName);
}
},
});