diff options
Diffstat (limited to 'src/handlers/index.js')
-rw-r--r-- | src/handlers/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/handlers/index.js b/src/handlers/index.js index 4e7ee83..ba040fd 100644 --- a/src/handlers/index.js +++ b/src/handlers/index.js @@ -17,7 +17,7 @@ const handleEventAsUser = async (event, browser, user) => { const browserContext = await browser.createIncognitoBrowserContext(); - const { conferenceId } = event; + const { conferenceId } = event.context; const conferenceUrl = `${EDUFPMI_URL}/mod/bigbluebuttonbn/view.php?id=${conferenceId}`; const page = await launchUserSession(user, browserContext); @@ -40,11 +40,11 @@ const handleEventAsUser = async (event, browser, user) => { const handleEvent = async event => { const participants = await UserModel.find({ username: { - $in: event.participants + $in: event.context.participants } }); - event.log('Participants: ', participants.map(participant => participant.username)); + event.log(`Participants: ${participants.map(participant => participant.username)}`); const browser = await puppeteer.launch({ headless, args: ['--no-sandbox', '--incognito'] }); |