fixed authEvent

This commit is contained in:
Andris Reinman 2018-10-03 09:40:07 +03:00
parent b8b52248c2
commit 65657848b0

View file

@ -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