From ab2202254b63c0fdd4dd2e5b9c464739e61c05f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Mon, 4 Jan 2021 14:37:23 +0100 Subject: [PATCH] Prazdny seznam prispevku --- .gitlab-ci.yml | 2 +- lib/CF/Controller/Posts.pm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0caae1e..52c11f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: docker:19.03.12 variables: DOCKER_TLS_CERTDIR: "/certs" - IMAGE_VER: 1.8.2 + IMAGE_VER: 1.8.3 services: - docker:19.03.12-dind diff --git a/lib/CF/Controller/Posts.pm b/lib/CF/Controller/Posts.pm index a0123ef..a59f381 100644 --- a/lib/CF/Controller/Posts.pm +++ b/lib/CF/Controller/Posts.pm @@ -95,7 +95,8 @@ sub list ($c) { # Neni zadny aktivni bod rozpravy if ( ! $program_entry ) { - return $c->error(404, 'Debate closed'); + $c->render(json => { data => [], total => 0, }); + return } $cond->{program_entry_id} = $program_entry->id; -- GitLab