slug null content answers, just code

This commit is contained in:
Baptiste Lemoine 2020-04-21 18:26:38 +02:00
parent 124439ee3c
commit ba0f803f2d
1 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ class PollController extends FramadateController {
if ( $found ) {
if ( ! $elaborated_message_version ) {
return $this->json( 'no-content',
return $this->json( null,
204 );
}
@ -345,7 +345,7 @@ class PollController extends FramadateController {
204 );
}
if ( ! $elaborated_message_version ) {
return $this->json( 'NOT_found',
return $this->json( null,
404 );
}