From 1ea10a9cab29b75ff95949d212ed2e43aedd0cdb Mon Sep 17 00:00:00 2001 From: Athfan Khaleel Date: Wed, 8 Jan 2025 15:15:07 +0500 Subject: [PATCH] Fix: Export route name Having same route name for index and export caused an issue and was first observed when running the `artisan optimize` command. This fixes it. --- src/TimeSeriesStats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TimeSeriesStats.php b/src/TimeSeriesStats.php index ba3d8e5..18fa12a 100644 --- a/src/TimeSeriesStats.php +++ b/src/TimeSeriesStats.php @@ -305,7 +305,7 @@ public static function registerApiRoute( public static function registerRoutes( string $url = '/stats/time-series', string $index_name = 'stats.time-series.index', - string $export_name = 'stats.time-series.index', + string $export_name = 'stats.time-series.export', array $middleware = ['stats.view-time-series'] ) {