fixed faulty syntax
This commit is contained in:
parent
5a88c283d5
commit
f4cd25dd68
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