fix: delay queued currency rates filling

This commit is contained in:
hackerESQ
2025-07-11 22:38:09 -05:00
parent cfd5b8a4f3
commit 40120c7027
+3 -1
View File
@@ -134,9 +134,11 @@ class CurrencyRate extends Model
if (is_array($currency)) {
$i = 1;
foreach ($currency as $curr) {
dispatch(fn () => self::timeSeriesRates($curr, $start, $end));
dispatch(fn () => self::timeSeriesRates($curr, $start, $end))->delay(now()->addSeconds(30 * $i));
$i++;
}
return [];