Changed logic for transaction list API
This commit is contained in:
parent
de9d70432f
commit
b247183914
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 $duration = DateTime::Duration->new( days => 30 );
|
||||
my $end = DateTime->today;
|
||||
my $start = $end->clone->subtract_duration( $duration );
|
||||
my $start = DateTime->today;
|
||||
my $end = $start->clone->subtract_duration( $duration );
|
||||
|
||||
my $data = { days => [], category => [], value => [] };
|
||||
|
||||
|
|
Reference in a new issue