From 5d75383fb3217e02f386d6cc73d995c48cc5db6f Mon Sep 17 00:00:00 2001 From: Guillaume Faas <59444272+Tr00d@users.noreply.github.com> Date: Tue, 14 Nov 2023 15:06:58 +0100 Subject: [PATCH] fix: retrieve recording in meetings (#137) --- meetings/retrieve-recording.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/meetings/retrieve-recording.js b/meetings/retrieve-recording.js index 0fa7a16..c041f37 100644 --- a/meetings/retrieve-recording.js +++ b/meetings/retrieve-recording.js @@ -2,7 +2,7 @@ require('dotenv').config({ path: __dirname + '/../../.env' }); const VONAGE_APPLICATION_ID = process.env.VONAGE_APPLICATION_ID; const VONAGE_APPLICATION_PRIVATE_KEY_PATH = __dirname + "/../../" + process.env.VONAGE_APPLICATION_PRIVATE_KEY_PATH; -const SESSION_ID = process.env.SESSION_ID; +const RECORDING_ID = process.env.RECORDING_ID; const { Auth } = require('@vonage/auth'); const { Meetings } = require('@vonage/meetings'); @@ -14,6 +14,4 @@ const credentials = new Auth({ const options = {}; const meetingsClient = new Meetings(credentials, options); -for await (const recording of meetingsClient.getSessionRecordings(SESSION_ID)) { - console.log(recording); -} +const recording = await meetingsClient.getRecording(RECORDING_ID); \ No newline at end of file