mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Move every Meteor.users.findOne(idOrFirstObjectSelector, options) to the ReactiveCache
This commit is contained in:
parent
6c3170360b
commit
92052458f5
4 changed files with 14 additions and 20 deletions
|
|
@ -40,7 +40,7 @@ runOnServer(function() {
|
|||
const loginToken = params.query.authToken;
|
||||
if (loginToken) {
|
||||
const hashToken = Accounts._hashLoginToken(loginToken);
|
||||
user = Meteor.users.findOne({
|
||||
user = ReactiveCache.getUser({
|
||||
'services.resume.loginTokens.hashedToken': hashToken,
|
||||
});
|
||||
adminId = user._id.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue