fixed faulty syntax

This commit is contained in:
Finn 2018-01-15 14:34:02 +00:00
parent 5a88c283d5
commit f4cd25dd68

View file

@ -215,7 +215,7 @@ sub post_category {
my $category_rs = $c->schema->resultset('Category'); my $category_rs = $c->schema->resultset('Category');
$category_rs->result_class('DBIx::Class::ResultClass::HashRefInflator'); $category_rs->result_class('DBIx::Class::ResultClass::HashRefInflator');
$categories => [ $category_rs->all ] ); my $categories => $category_rs->all;
return $self->render( json => { return $self->render( json => {
success => Mojo::JSON->true, success => Mojo::JSON->true,