= user ;
})
.catch (err => console.log(err))
when will the catch block fire ?
Try replacing req.session.user._id with undefined/null/{} something
In case of any mongo error in collection will receive here
Обсуждают сегодня