From 65657848b0124623530dafa58ebc526dd7ac1a36 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Wed, 3 Oct 2018 09:40:07 +0300 Subject: [PATCH] fixed authEvent --- lib/user-handler.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/user-handler.js b/lib/user-handler.js index 453f3f2c..6737388e 100644 --- a/lib/user-handler.js +++ b/lib/user-handler.js @@ -674,11 +674,10 @@ class UserHandler { meta.result = 'success'; - this.logAuthEvent(userData._id, meta, (err, r) => { + this.logAuthEvent(userData._id, meta, (err, authEvent) => { if (err) { // don't really care } - let authEvent = r && r.insertedId; this.users.collection('asps').findOneAndUpdate( { _id: asp._id