From 6fd3989118aaea7fbe720f5d9682bc59f801b064 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Thu, 30 Apr 2020 16:19:49 +0200 Subject: [PATCH] Add zoom meeting whitelist This allows to only record meetings for certain whitelisted meeting ids --- integrations/zoom.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integrations/zoom.js b/integrations/zoom.js index 7819d12..689ef11 100644 --- a/integrations/zoom.js +++ b/integrations/zoom.js @@ -87,7 +87,11 @@ module.exports = async function(robot, kredits) { const payload = data.payload; const object = payload.object; - if (eventName === 'meeting.ended') { + + if (eventName === 'meeting.ended' && ( + !process.env.KREDITS_ZOOM_MEETING_WHITELIST || + process.env.KREDITS_ZOOM_MEETING_WHITELIST.split(',').includes(object.id) + )) { handleZoomMeetingEnded(object); }