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