Преглед изворни кода

https://assistance.opentalent.fr/browse/V8-1798

Olivier Massot пре 4 година
родитељ
комит
3e21d12f59
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      ot_core/Classes/Domain/Repository/EventRepository.php

+ 2 - 2
ot_core/Classes/Domain/Repository/EventRepository.php

@@ -20,8 +20,8 @@ class EventRepository extends BaseApiRepository
      * @throws ApiRequestException
      */
     public function findById(int $id) {
-        $params = [];
-        return $this->getApiFirstRecord($this::URI . '/' . $id, $params);
+        $params = ["filter[where][id]" => $id];
+        return $this->getApiFirstRecord($this::URI, $params);
     }
 
     /**