diff options
author | dartcafe <github@dartcafe.de> | 2021-07-05 13:15:24 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-07-05 13:15:24 +0300 |
commit | 4e71bdb14fdc84daa82811885ce67d43534e5a68 (patch) | |
tree | 42954a68e79fd803db6178cc0744c27b2d7f8408 /lib/Controller/SubscriptionController.php | |
parent | f4f01c7bd328e8758a158dbeeff481fa2925ee47 (diff) |
fix parameter order
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Controller/SubscriptionController.php')
-rw-r--r-- | lib/Controller/SubscriptionController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/SubscriptionController.php b/lib/Controller/SubscriptionController.php index deb640e1..b6289c46 100644 --- a/lib/Controller/SubscriptionController.php +++ b/lib/Controller/SubscriptionController.php @@ -61,7 +61,7 @@ class SubscriptionController extends Controller { */ public function subscribe(int $pollId): DataResponse { return $this->response(function () use ($pollId) { - return ['subscribed' => $this->subscriptionService->set($pollId, '', true)]; + return ['subscribed' => $this->subscriptionService->set(true, $pollId, '')]; }); } @@ -71,7 +71,7 @@ class SubscriptionController extends Controller { */ public function unsubscribe(int $pollId): DataResponse { return $this->response(function () use ($pollId) { - return ['subscribed' => $this->subscriptionService->set($pollId, '', false)]; + return ['subscribed' => $this->subscriptionService->set(false, $pollId, '')]; }); } } |