Add zoom meeting whitelist
This allows to only record meetings for certain whitelisted meeting ids
This commit is contained in:
parent
41f5aef460
commit
6fd3989118
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user