mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
use user._id for error log
This commit is contained in:
parent
f11926d0a9
commit
2a00b9c7a2
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module.exports =
|
||||||
logger.log {user_id:user?._id}, "getting unread announcements"
|
logger.log {user_id:user?._id}, "getting unread announcements"
|
||||||
AnnouncementsHandler.getUnreadAnnouncements user, (err, announcements)->
|
AnnouncementsHandler.getUnreadAnnouncements user, (err, announcements)->
|
||||||
if err?
|
if err?
|
||||||
logger.err {err, user_id}, "unable to get unread announcements"
|
logger.err {err, user._id}, "unable to get unread announcements"
|
||||||
next(err)
|
next(err)
|
||||||
else
|
else
|
||||||
res.json announcements
|
res.json announcements
|
||||||
|
|
Loading…
Reference in a new issue