Changed logic for transaction list API

This commit is contained in:
Finn 2018-01-17 17:38:24 +00:00
parent 8c9bcbf85c
commit 8ec32e3b3c

View file

@ -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 => [] };