From 9bc67880924251d6c8bf274f82edec875e00711f Mon Sep 17 00:00:00 2001 From: Edward Banner Date: Wed, 1 May 2024 15:18:35 -0400 Subject: [PATCH] Remove unused imports in handle-participant-joined-left-background --- .../index.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/functions/handle-participant-joined-left-background/index.js b/functions/handle-participant-joined-left-background/index.js index 26881b0..2312907 100644 --- a/functions/handle-participant-joined-left-background/index.js +++ b/functions/handle-participant-joined-left-background/index.js @@ -1,23 +1,9 @@ require('dotenv').config(); -const crypto = require('crypto'); - -const { updateMeetingStatus, updateMeetingAttendence } = require('../zoom-meeting-webhook-handler/slack.js'); +const { updateMeetingAttendence } = require('../zoom-meeting-webhook-handler/slack.js'); const rooms = require('../../data/rooms.json'); -const EVENT_MEETING_STARTED = 'meeting.started'; -const EVENT_MEETING_ENDED = 'meeting.ended'; -const EVENT_PARTICIPANT_JOINED = 'meeting.participant_joined'; -const EVENT_PARTICIPANT_LEFT = 'meeting.participant_left'; - -const ZOOM_SECRET = - process.env.TEST_ZOOM_WEBHOOK_SECRET_TOKEN || - process.env.ZOOM_WEBHOOK_SECRET_TOKEN; - -const ZOOM_AUTH = - process.env.TEST_ZOOM_WEBHOOK_AUTH || process.env.ZOOM_WEBHOOK_AUTH; - const handler = async function (event, context) { try { const request = JSON.parse(event.body);