Fix org graphs test for entity upgrade

This commit is contained in:
Tom Bloor 2017-08-31 19:12:13 +01:00
parent adfcd8880f
commit cca27b5475
2 changed files with 5 additions and 3 deletions

View file

@ -56,7 +56,7 @@ sub graph_customers_last_30_days {
sub _customers_last_duration {
my ( $c, $duration ) = @_;
my $org = $c->stash->{api_user}->organisation;
my $org = $c->stash->{api_user}->entity;
my $data = { day => [], count => [] };