1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

remove description annotation

This commit is contained in:
Tykayn 2021-11-23 10:25:11 +01:00 committed by tykayn
parent ca5a77c408
commit c5dc43580b

View File

@ -218,6 +218,11 @@ class PollController extends EmailsController {
}
/**
* @param $poll
* @param $serializer
* @return Response
*/
function returnPollData( $poll, $serializer ) {
$jsonResponse = $serializer->serialize( $poll, 'json' );
@ -265,7 +270,7 @@ class PollController extends EmailsController {
* requirements = {"creator"="\w+"}
* )
* @param Request $request
* @description create a new poll
* create a new poll
* @return JsonResponse
*/
public function newPollAction( Request $request ) {
@ -329,7 +334,7 @@ class PollController extends EmailsController {
$newpoll->setIsZeroKnowledge( $data[ 'is_zero_knowledge' ] );
$newpoll->setDescription( $data[ 'description' ] );
$newpoll->setHideResults( false );
$newpoll->setHideResults( $data[ 'hideResults' ] );
// possible answers
$newpoll->setAllowedAnswers( $data[ 'allowed_answers' ] );
$newpoll->setVotesMax( $data[ 'maxCountOfAnswers' ] );