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

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

View File

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