exchangeRatesCronJob should only be fired when ENABLE_EXTERNAL_RATES is true.

This commit is contained in:
zqye 2023-07-31 10:04:16 -07:00
parent c6e3fa2cc6
commit 2eae96a895

View File

@ -58,7 +58,7 @@ class CronController extends Controller
$return = [];
$return['recurring_transactions'] = $this->runRecurring($config['force'], $config['date']);
$return['auto_budgets'] = $this->runAutoBudget($config['force'], $config['date']);
if (true === config('cer.enabled')) {
if (true === config('cer.download_enabled')) {
$return['exchange_rates'] = $this->exchangeRatesCronJob($config['force'], $config['date']);
}
$return['bill_warnings'] = $this->billWarningCronJob($config['force'], $config['date']);