Changed logic for transaction list API
This commit is contained in:
parent
8c9bcbf85c
commit
8ec32e3b3c
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ sub post_category_list {
|
||||||
my $entity = $c->stash->{api_user}->entity;
|
my $entity = $c->stash->{api_user}->entity;
|
||||||
|
|
||||||
my $duration = DateTime::Duration->new( days => 30 );
|
my $duration = DateTime::Duration->new( days => 30 );
|
||||||
my $end = DateTime->today;
|
my $start = DateTime->today;
|
||||||
my $start = $end->clone->subtract_duration( $duration );
|
my $end = $start->clone->subtract_duration( $duration );
|
||||||
|
|
||||||
my $data = { days => [], category => [], value => [] };
|
my $data = { days => [], category => [], value => [] };
|
||||||
|
|
||||||
|
|
Reference in a new issue