浏览代码

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);
     }
 
     /**