Skip to content

Commit

Permalink
Take into account several meetings ID when fetching recordings
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentdavid committed Sep 7, 2021
1 parent 92859e1 commit 46f4297
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions application/src/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,15 @@ public function recordingsGet(string $serverID, Request $request): XmlResponse
];

if ($request->query->has('meetingID') && $meetingID = $request->query->get('meetingID')) {
$meeting = $this->findRoomConfiguration($serverID, $meetingID);
if (empty($meeting)) {
return $this->handleRoomNotFound($meetingID);
$meetings = explode(',', $meetingID);
$filter['meeting'] = [];
foreach ($meetings as $mID) {
$meeting = $this->findRoomConfiguration($serverID, $mID);
if (empty($meeting)) {
return $this->handleRoomNotFound($mID);
}
$filter['meeting'][] = $meeting;
}
$filter['meeting'] = $meeting;
} else if ($request->query->has('recordID') && $recordID = $request->query->get('recordID')) {
$filter['recordID'] = explode(',', $recordID);
}
Expand Down

0 comments on commit 46f4297

Please sign in to comment.