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:
parent
124439ee3c
commit
ba0f803f2d
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user