From 603c5262876a8e8be16d0587424179ed18d6955a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 24 May 2019 11:39:03 -0400 Subject: [PATCH] fix: bad usage of async requisition --- src/controllers/authentication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 2d5ed688db..968209f7d0 100644 --- a/src/controllers/authentication.js +++ b/src/controllers/authentication.js @@ -9,7 +9,7 @@ var _ = require('lodash'); var db = require('../database'); var meta = require('../meta'); -var user = require('../user').async; +var user = require('../user'); var plugins = require('../plugins'); var utils = require('../utils'); var translator = require('../translator'); @@ -208,7 +208,7 @@ authenticationController.registerComplete = function (req, res, next) { } }); - await user.setUserFields(uid, payload); + await user.async.setUserFields(uid, payload); done(); } });