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:
authordartcafe <github@dartcafe.de>2020-06-20 14:15:48 +0300
committerdartcafe <github@dartcafe.de>2020-06-20 14:15:48 +0300
commitfeb0fc3e16bde4d0fb0871e50a6c60eca83483d2 (patch)
tree12a291febcbb6b9be9086d6e946432c1769de713 /lib/Controller/CommentController.php
parentd3b8c7c7028b6c112c230df6c010263dfb1a1130 (diff)
Updated API and code polish, tidy
Diffstat (limited to 'lib/Controller/CommentController.php')
-rw-r--r--lib/Controller/CommentController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/CommentController.php b/lib/Controller/CommentController.php
index 70403abd..e940bfb7 100644
--- a/lib/Controller/CommentController.php
+++ b/lib/Controller/CommentController.php
@@ -88,9 +88,9 @@ class CommentController extends Controller {
* @param string $token
* @return DataResponse
*/
- public function add($message, $pollId, $token) {
+ public function add($pollId, $message, $token) {
try {
- return new DataResponse($this->commentService->add($message, $pollId, $token), Http::STATUS_OK);
+ return new DataResponse($this->commentService->add($pollId, $message, $token), Http::STATUS_OK);
} catch (Exception $e) {
return new DataResponse($e, Http::STATUS_UNAUTHORIZED);
}