Browse Source

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

Olivier Massot 4 years ago
parent
commit
3e21d12f59
1 changed files with 2 additions and 2 deletions
  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);
     }
 
     /**