summaryrefslogtreecommitdiffstats
path: root/models/export.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-06-18 02:00:51 +0300
committerLauri Ojansivu <x@xet7.org>2020-06-18 02:00:51 +0300
commit5eb378452761ad1d6d67a491316007fdf6dfd689 (patch)
treec6509dc8e69ae60db7703467bff12dd10fccd84c /models/export.js
parent0ff1e63a5d82d1fb3a6f0a0d994ac2c30cdb1c9f (diff)
downloadwekan-5eb378452761ad1d6d67a491316007fdf6dfd689.tar.gz
wekan-5eb378452761ad1d6d67a491316007fdf6dfd689.tar.bz2
wekan-5eb378452761ad1d6d67a491316007fdf6dfd689.zip
Revert users changes that were made at Wekan v4.16.
Thanks to xet7 !
Diffstat (limited to 'models/export.js')
-rw-r--r--models/export.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/export.js b/models/export.js
index b90f584c..17b08dad 100644
--- a/models/export.js
+++ b/models/export.js
@@ -28,7 +28,7 @@ if (Meteor.isServer) {
const loginToken = req.query.authToken;
if (loginToken) {
const hashToken = Accounts._hashLoginToken(loginToken);
- user = Users.findOne({
+ user = Meteor.users.findOne({
'services.resume.loginTokens.hashedToken': hashToken,
});
} else if (!Meteor.settings.public.sandstorm) {
@@ -69,7 +69,7 @@ if (Meteor.isServer) {
const loginToken = params.query.authToken;
if (loginToken) {
const hashToken = Accounts._hashLoginToken(loginToken);
- user = Users.findOne({
+ user = Meteor.users.findOne({
'services.resume.loginTokens.hashedToken': hashToken,
});
} else if (!Meteor.settings.public.sandstorm) {