mirror of https://github.com/sualko/cloud_bbb
parent
a8e37fb961
commit
4d9a7b8a79
|
@ -172,6 +172,7 @@ class API {
|
||||||
private function recordToArray(Record $record) {
|
private function recordToArray(Record $record) {
|
||||||
return [
|
return [
|
||||||
'id' => $record->getRecordId(),
|
'id' => $record->getRecordId(),
|
||||||
|
'meetingId' => $record->getMeetingId(),
|
||||||
'name' => $record->getName(),
|
'name' => $record->getName(),
|
||||||
'published' => $record->isPublished(),
|
'published' => $record->isPublished(),
|
||||||
'state' => $record->getState(),
|
'state' => $record->getState(),
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ServerController extends Controller {
|
||||||
public function deleteRecord(string $recordId): DataResponse {
|
public function deleteRecord(string $recordId): DataResponse {
|
||||||
$record = $this->server->getRecording($recordId);
|
$record = $this->server->getRecording($recordId);
|
||||||
|
|
||||||
$room = $this->service->findByUid($record['metas']['meetingId']);
|
$room = $this->service->findByUid($record['meetingId']);
|
||||||
|
|
||||||
if ($room === null) {
|
if ($room === null) {
|
||||||
return new DataResponse(false, Http::STATUS_NOT_FOUND);
|
return new DataResponse(false, Http::STATUS_NOT_FOUND);
|
||||||
|
|
Loading…
Reference in New Issue