mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-10 12:24:50 +00:00
Update configuration and fix some files.
This commit is contained in:
@@ -248,7 +248,7 @@ class ApplyRules extends Command
|
||||
|
||||
foreach ($ruleList as $ruleId) {
|
||||
$rule = $this->ruleRepository->find((int) $ruleId);
|
||||
if (null !== $rule && true === $rule->active) {
|
||||
if ($rule instanceof Rule && true === $rule->active) {
|
||||
$this->ruleSelection[] = $rule->id;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ class Cron extends Command
|
||||
$exchangeRates = new ExchangeRatesCronjob();
|
||||
$exchangeRates->setForce($force);
|
||||
// set date in cron job:
|
||||
if (null !== $date) {
|
||||
if ($date instanceof Carbon) {
|
||||
$exchangeRates->setDate($date);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ class Cron extends Command
|
||||
$recurring->setForce($force);
|
||||
|
||||
// set date in cron job:
|
||||
if (null !== $date) {
|
||||
if ($date instanceof Carbon) {
|
||||
$recurring->setDate($date);
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ class Cron extends Command
|
||||
$autoBudget = new AutoBudgetCronjob();
|
||||
$autoBudget->setForce($force);
|
||||
// set date in cron job:
|
||||
if (null !== $date) {
|
||||
if ($date instanceof Carbon) {
|
||||
$autoBudget->setDate($date);
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ class Cron extends Command
|
||||
$autoBudget = new BillWarningCronjob();
|
||||
$autoBudget->setForce($force);
|
||||
// set date in cron job:
|
||||
if (null !== $date) {
|
||||
if ($date instanceof Carbon) {
|
||||
$autoBudget->setDate($date);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user