Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/VoteService.php')
-rw-r--r--lib/Service/VoteService.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Service/VoteService.php b/lib/Service/VoteService.php
index cbedb1ad..26f70502 100644
--- a/lib/Service/VoteService.php
+++ b/lib/Service/VoteService.php
@@ -151,7 +151,7 @@ class VoteService {
* @param int $voteId
* @param string $userId
* @param int $pollId
- * @return Vote
+ * @return boolean
* @throws NotAuthorizedException
*/
public function delete($pollId, $userId) {
@@ -160,7 +160,8 @@ class VoteService {
throw new NotAuthorizedException;
}
- $votes = $this->voteMapper->deleteByPollAndUser($pollId, $userId);
+ $this->voteMapper->deleteByPollAndUser($pollId, $userId);
+ return true;
}
}