fixed faulty syntax
This commit is contained in:
parent
4369a95054
commit
53b63aa655
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue