From 4d9a7b8a793b776122bdf051b2ef2ac7c8a7ef36 Mon Sep 17 00:00:00 2001 From: sualko Date: Mon, 7 Sep 2020 11:57:15 +0200 Subject: [PATCH] fix: record deletion with scalelight fix #76 --- lib/BigBlueButton/API.php | 1 + lib/Controller/ServerController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/BigBlueButton/API.php b/lib/BigBlueButton/API.php index 5a43328..a4a51e5 100644 --- a/lib/BigBlueButton/API.php +++ b/lib/BigBlueButton/API.php @@ -172,6 +172,7 @@ class API { private function recordToArray(Record $record) { return [ 'id' => $record->getRecordId(), + 'meetingId' => $record->getMeetingId(), 'name' => $record->getName(), 'published' => $record->isPublished(), 'state' => $record->getState(), diff --git a/lib/Controller/ServerController.php b/lib/Controller/ServerController.php index f9d9540..f7552b6 100644 --- a/lib/Controller/ServerController.php +++ b/lib/Controller/ServerController.php @@ -65,7 +65,7 @@ class ServerController extends Controller { public function deleteRecord(string $recordId): DataResponse { $record = $this->server->getRecording($recordId); - $room = $this->service->findByUid($record['metas']['meetingId']); + $room = $this->service->findByUid($record['meetingId']); if ($room === null) { return new DataResponse(false, Http::STATUS_NOT_FOUND);