summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorPaul Tirk <paultirk@paultirk.com>2022-04-11 15:53:44 +0000
committerBenjamin Brahmer <info@b-brahmer.de>2022-04-30 20:04:30 +0200
commit115df4b9e2fec28449d7f6c2a10ed2633b5f062b (patch)
treed8e5bc28df8e939f53c585499077a4bb04b3c0ce /lib/Controller
parentb9c4f0bacb64aed63939430609d76fb1967b0d63 (diff)
remove duplicate function
Signed-off-by: Paul Tirk <paultirk@paultirk.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ItemApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ItemApiController.php b/lib/Controller/ItemApiController.php
index cf6266006..9b8090ef7 100644
--- a/lib/Controller/ItemApiController.php
+++ b/lib/Controller/ItemApiController.php
@@ -231,7 +231,7 @@ class ItemApiController extends ApiController
private function setStarredByItemId(int $itemId, bool $isStarred)
{
try {
- $this->itemService->starByItemId($this->getUserId(), $itemId, $isStarred);
+ $this->itemService->star($this->getUserId(), $itemId, $isStarred);
} catch (ServiceNotFoundException $ex) {
return $this->error($ex, Http::STATUS_NOT_FOUND);
}