fix: record deletion with scalelight

fix #76
pull/77/head
sualko 2020-09-07 11:57:15 +02:00
parent a8e37fb961
commit 4d9a7b8a79
2 changed files with 2 additions and 1 deletions

View File

@ -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(),

View File

@ -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);