From 1b0f9c134c3f40d40dfa4c3ae1db07f685a5bd11 Mon Sep 17 00:00:00 2001 From: hackerESQ Date: Fri, 16 May 2025 19:38:58 -0500 Subject: [PATCH] fix: dispatch time series rates --- app/Models/CurrencyRate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/CurrencyRate.php b/app/Models/CurrencyRate.php index 35c1e4c..9c05df0 100644 --- a/app/Models/CurrencyRate.php +++ b/app/Models/CurrencyRate.php @@ -135,7 +135,8 @@ class CurrencyRate extends Model if (is_array($currency)) { foreach ($currency as $curr) { - dispatch(self::timeSeriesRates($curr, $start, $end)); + + dispatch(fn () => self::timeSeriesRates($curr, $start, $end)); } return [];