From ba0f803f2d172b1f230e1c0451c6fde269078799 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Tue, 21 Apr 2020 18:26:38 +0200 Subject: [PATCH] slug null content answers, just code --- src/Controller/PollController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/PollController.php b/src/Controller/PollController.php index 2f55e54..f3f53c2 100644 --- a/src/Controller/PollController.php +++ b/src/Controller/PollController.php @@ -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 ); }