From 46f429725f04097b3096f91968e890fb110c4388 Mon Sep 17 00:00:00 2001 From: Laurent David Date: Tue, 7 Sep 2021 14:56:36 +0200 Subject: [PATCH] Take into account several meetings ID when fetching recordings --- application/src/Controller/ApiController.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/application/src/Controller/ApiController.php b/application/src/Controller/ApiController.php index 6a726f7..d60b2f5 100644 --- a/application/src/Controller/ApiController.php +++ b/application/src/Controller/ApiController.php @@ -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); }