fixed faulty syntax

This commit is contained in:
Finn 2018-01-15 14:34:02 +00:00
parent 4369a95054
commit 53b63aa655
1 changed files with 1 additions and 1 deletions

View File

@ -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,