Skip to content

Commit

Permalink
fix: error when using modified dateAlias value (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymon-roos authored Mar 22, 2023
1 parent 49924e0 commit bc43bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Trend.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function count(string $column = '*'): Collection
public function mapValuesToDates(Collection $values): Collection
{
$values = $values->map(fn ($value) => new TrendValue(
date: $value->date,
date: $value->{$this->dateAlias},
aggregate: $value->aggregate,
));

Expand Down

0 comments on commit bc43bf7

Please sign in to comment.