mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Move every ImpersonatedUsers.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
e30edce73e
commit
767d8e66e7
5 changed files with 56 additions and 18 deletions
|
@ -1532,9 +1532,7 @@ if (Meteor.isServer) {
|
|||
},
|
||||
isImpersonated(userId) {
|
||||
check(userId, String);
|
||||
const isImpersonated = ImpersonatedUsers.findOne({
|
||||
userId: userId,
|
||||
});
|
||||
const isImpersonated = ReactiveCache.getImpersonatedUser({ userId: userId });
|
||||
return isImpersonated;
|
||||
},
|
||||
setUsersTeamsTeamDisplayName(teamId, teamDisplayName) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue