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 [];