diff --git a/services/web/app/coffee/infrastructure/LoggerSerializers.coffee b/services/web/app/coffee/infrastructure/LoggerSerializers.coffee index f496b8cdad..7bd90c3bf5 100644 --- a/services/web/app/coffee/infrastructure/LoggerSerializers.coffee +++ b/services/web/app/coffee/infrastructure/LoggerSerializers.coffee @@ -1,5 +1,7 @@ module.exports = user: (user) -> + if !user? + return null if !user._id? user = {_id : user} return { @@ -10,6 +12,8 @@ module.exports = } project: (project) -> + if !project? + return null if !project._id? project = {_id: project} return {