mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Fix #10891
This commit is contained in:
		| @@ -38,7 +38,7 @@ class CurrencyExchangeRate extends Model | ||||
|     use ReturnsIntegerUserIdTrait; | ||||
|     use SoftDeletes; | ||||
| 
 | ||||
|     protected $fillable = ['user_id', 'from_currency_id', 'to_currency_id', 'date', 'date_tz', 'rate']; | ||||
|     protected $fillable = ['user_id','user_group_id', 'from_currency_id', 'to_currency_id', 'date', 'date_tz', 'rate']; | ||||
| 
 | ||||
|     public function fromCurrency(): BelongsTo | ||||
|     { | ||||
|   | ||||
| @@ -40,8 +40,8 @@ class AutoBudgetCronjob extends AbstractCronjob | ||||
|         /** @var Configuration $config */ | ||||
|         $config        = FireflyConfig::get('last_ab_job', 0); | ||||
|         $lastTime      = (int) $config->data; | ||||
|         $diff          = Carbon::now()->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = today(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         $diff          = now(config('app.timezone'))->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = now(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         if (0 === $lastTime) { | ||||
|             Log::info('Auto budget cron-job has never fired before.'); | ||||
|         } | ||||
|   | ||||
| @@ -46,8 +46,8 @@ class BillWarningCronjob extends AbstractCronjob | ||||
|         /** @var Configuration $config */ | ||||
|         $config        = FireflyConfig::get('last_bw_job', 0); | ||||
|         $lastTime      = (int) $config->data; | ||||
|         $diff          = Carbon::now()->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = today(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         $diff          = now(config('app.timezone'))->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = now(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
| 
 | ||||
|         if (0 === $lastTime) { | ||||
|             Log::info('The bill notification cron-job has never fired before.'); | ||||
|   | ||||
| @@ -40,8 +40,8 @@ class ExchangeRatesCronjob extends AbstractCronjob | ||||
|         /** @var Configuration $config */ | ||||
|         $config        = FireflyConfig::get('last_cer_job', 0); | ||||
|         $lastTime      = (int) $config->data; | ||||
|         $diff          = Carbon::now()->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = today(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         $diff          = now(config('app.timezone'))->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = now(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         if (0 === $lastTime) { | ||||
|             Log::info('Exchange rates cron-job has never fired before.'); | ||||
|         } | ||||
|   | ||||
| @@ -46,8 +46,8 @@ class RecurringCronjob extends AbstractCronjob | ||||
|         /** @var Configuration $config */ | ||||
|         $config        = FireflyConfig::get('last_rt_job', 0); | ||||
|         $lastTime      = (int) $config->data; | ||||
|         $diff          = Carbon::now()->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = today(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         $diff          = now(config('app.timezone'))->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = now(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
| 
 | ||||
|         if (0 === $lastTime) { | ||||
|             Log::info('Recurring transactions cron-job has never fired before.'); | ||||
|   | ||||
| @@ -46,8 +46,8 @@ class WebhookCronjob extends AbstractCronjob | ||||
|         /** @var Configuration $config */ | ||||
|         $config        = FireflyConfig::get('last_webhook_job', 0); | ||||
|         $lastTime      = (int) $config->data; | ||||
|         $diff          = Carbon::now()->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = today(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
|         $diff          = now(config('app.timezone'))->getTimestamp() - $lastTime; | ||||
|         $diffForHumans = now(config('app.timezone'))->diffForHumans(Carbon::createFromTimestamp($lastTime), null, true); | ||||
| 
 | ||||
|         if (0 === $lastTime) { | ||||
|             Log::info('The webhook cron-job has never fired before.'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user