mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
Merge branch 'master' of https://framagit.org/tykayn/date-poll-api
This commit is contained in:
commit
647c2d2716
@ -213,10 +213,11 @@ class DefaultController extends AbstractController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return $this->json( [
|
return $this->json( [
|
||||||
'message' => 'you created a poll ' . $precision,
|
'message' => 'you created a poll ' . $precision,
|
||||||
'data' => $newpoll,
|
'data' => $newpoll,
|
||||||
'password_protected' => is_string( $newpoll->getPassword() ),
|
'password_protected' => is_string( $newpoll->getPassword() ),
|
||||||
'admin_key' => $newpoll->getAdminKey(),
|
'admin_key' => $newpoll->getAdminKey(),
|
||||||
|
'owner_modifier_token' => $foundOwner->getModifierToken(),
|
||||||
|
|
||||||
],
|
],
|
||||||
201 );
|
201 );
|
||||||
@ -541,7 +542,7 @@ class DefaultController extends AbstractController {
|
|||||||
'vote_stack' => $stack->display(),
|
'vote_stack' => $stack->display(),
|
||||||
'vote_count' => count( $poll->getStacksOfVotes() ),
|
'vote_count' => count( $poll->getStacksOfVotes() ),
|
||||||
'owner_modifier_token' => $foundOwner->getModifierToken(),
|
'owner_modifier_token' => $foundOwner->getModifierToken(),
|
||||||
'admin_token' => $poll->getAdminKey(),
|
'admin_key' => $poll->getAdminKey(),
|
||||||
'json_you_sent' => $data,
|
'json_you_sent' => $data,
|
||||||
],
|
],
|
||||||
201 );
|
201 );
|
||||||
|
Loading…
Reference in New Issue
Block a user