diff --git a/src/Trend.php b/src/Trend.php index c64469a..eeb414b 100755 --- a/src/Trend.php +++ b/src/Trend.php @@ -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, ));