From baf09e4f3af427cdb24807fcd80640f658c76e89 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 25 Oct 2016 15:50:05 +0100 Subject: [PATCH] avoid exception in LoggerSerializers --- .../web/app/coffee/infrastructure/LoggerSerializers.coffee | 4 ++++ 1 file changed, 4 insertions(+) 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 {