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,