From 5b5a1ebabef18fcbf7f7b077c79b57806c28d6c4 Mon Sep 17 00:00:00 2001 From: Colin Hunt Date: Wed, 14 Mar 2018 08:29:49 -0700 Subject: [PATCH] Issue 1740: No notification triggered for active status --- src/constants.js | 1 + src/events/busApi.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/constants.js b/src/constants.js index dba0e48a..e642eb66 100644 --- a/src/constants.js +++ b/src/constants.js @@ -60,6 +60,7 @@ export const BUS_API_EVENT = { PROJECT_PAUSED: 'notifications.connect.project.paused', PROJECT_COMPLETED: 'notifications.connect.project.completed', PROJECT_CANCELED: 'notifications.connect.project.canceled', + PROJECT_ACTIVE: 'notifications.connect.project.active', MEMBER_JOINED: 'notifications.connect.project.member.joined', MEMBER_LEFT: 'notifications.connect.project.member.left', diff --git a/src/events/busApi.js b/src/events/busApi.js index 84699623..ac5f7b45 100644 --- a/src/events/busApi.js +++ b/src/events/busApi.js @@ -14,6 +14,7 @@ const mapEventTypes = { [PROJECT_STATUS.COMPLETED]: BUS_API_EVENT.PROJECT_COMPLETED, [PROJECT_STATUS.CANCELLED]: BUS_API_EVENT.PROJECT_CANCELED, [PROJECT_STATUS.PAUSED]: BUS_API_EVENT.PROJECT_PAUSED, + [PROJECT_STATUS.ACTIVE]: BUS_API_EVENT.PROJECT_ACTIVE, }; module.exports = (app, logger) => {