diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | lib/Controller/FeedApiController.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 75f2fdf9e..96f2afb57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. - Unittest commands and utilities - Upload codecoverage to codecov.io - Use foreign keys in db +- Fix delete api not working ## 15.0.6 diff --git a/lib/Controller/FeedApiController.php b/lib/Controller/FeedApiController.php index 2c96bbc6e..400c1a4b2 100644 --- a/lib/Controller/FeedApiController.php +++ b/lib/Controller/FeedApiController.php @@ -146,7 +146,7 @@ class FeedApiController extends ApiController public function delete(int $feedId) { try { - $this->feedService->delete($feedId, $this->getUserId()); + $this->feedService->delete($this->getUserId(), $feedId); } catch (ServiceNotFoundException $ex) { return $this->error($ex, Http::STATUS_NOT_FOUND); } |