From f4cd25dd684ca58443ba39a51e7604d2e69ffebb Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 15 Jan 2018 14:34:02 +0000 Subject: [PATCH] fixed faulty syntax --- lib/Pear/LocalLoop/Controller/Api/Upload.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Pear/LocalLoop/Controller/Api/Upload.pm b/lib/Pear/LocalLoop/Controller/Api/Upload.pm index 26cc34d..96a0b03 100644 --- a/lib/Pear/LocalLoop/Controller/Api/Upload.pm +++ b/lib/Pear/LocalLoop/Controller/Api/Upload.pm @@ -215,7 +215,7 @@ sub post_category { my $category_rs = $c->schema->resultset('Category'); $category_rs->result_class('DBIx::Class::ResultClass::HashRefInflator'); - $categories => [ $category_rs->all ] ); + my $categories => $category_rs->all; return $self->render( json => { success => Mojo::JSON->true,