From dc03296a03e03c571e7857ed80896aeb7b16dece Mon Sep 17 00:00:00 2001 From: Mo Date: Thu, 1 Aug 2019 17:46:30 +0200 Subject: [PATCH] fix(incident): fix assignee on incident timeline --- src/server/helpers/incidentHelper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/helpers/incidentHelper.js b/src/server/helpers/incidentHelper.js index b89a19dc..cfaef63f 100644 --- a/src/server/helpers/incidentHelper.js +++ b/src/server/helpers/incidentHelper.js @@ -193,10 +193,9 @@ const updateAssignedOrCcdUser = async ( }, }); - if (typeof ccdUser !== 'undefined' || typeof ccdUser !== null){ + if (ccdUser && ccdUser.length > 0) { await handleCCUpdateNotification(req, ccdUser, incident.id, ''); } - return selectedUser.action({ ...selectedUser.arguments, incident, res }); };