diff options
author | dartcafe <github@dartcafe.de> | 2020-10-23 13:56:57 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-10-23 13:56:57 +0300 |
commit | d2ca2c875c6f3be3691199e0832e7cd29f5a93c6 (patch) | |
tree | e6bb2c4a314284709d6a1e89e17855a23a80d018 /lib/Controller/ShareController.php | |
parent | d721ef12277a220b3e23e362336c8088b8bf6552 (diff) |
$emailAddress not used anymore
Diffstat (limited to 'lib/Controller/ShareController.php')
-rw-r--r-- | lib/Controller/ShareController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php index 0469945e..a7c34c59 100644 --- a/lib/Controller/ShareController.php +++ b/lib/Controller/ShareController.php @@ -100,9 +100,9 @@ class ShareController extends Controller { * @param string $userEmail * @return DataResponse */ - public function add($pollId, $type, $userId = '', $emailAddress = '') { + public function add($pollId, $type, $userId = '') { try { - return new DataResponse(['share' => $this->shareService->add($pollId, $type, $userId, $emailAddress)], Http::STATUS_CREATED); + return new DataResponse(['share' => $this->shareService->add($pollId, $type, $userId)], Http::STATUS_CREATED); } catch (NotAuthorizedException $e) { return new DataResponse(['error' => $e->getMessage()], $e->getStatus()); } catch (ShareAlreadyExists $e) { |