fix:wrong key used for daily change time of day config

This commit is contained in:
hackerESQ
2024-10-26 11:18:08 -05:00
parent b327059400
commit 6868c239a5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class Portfolio extends Model
$holdings->each(function($holding) use (&$total_performance, $dividends) { $holdings->each(function($holding) use (&$total_performance, $dividends) {
$period = CarbonPeriod::create($holding->first_transaction_date, now()->isBefore(Carbon::parse(config('daily_change_time_of_day'))) ? now()->subDay() : now())->filter('isWeekday'); $period = CarbonPeriod::create($holding->first_transaction_date, now()->isBefore(Carbon::parse(config('investbrain.daily_change_time_of_day'))) ? now()->subDay() : now())->filter('isWeekday');
$holding->setRelation('dividends', $dividends->where('symbol', $holding->symbol)); $holding->setRelation('dividends', $dividends->where('symbol', $holding->symbol));
+1 -1
View File
@@ -14,7 +14,7 @@ Schedule::command(RefreshMarketData::class)->everyMinute()->weekdays();
* *
* This scheduled job records daily changes to your portfolios every weekday * This scheduled job records daily changes to your portfolios every weekday
*/ */
Schedule::command(CaptureDailyChange::class)->dailyAt(config('daily_change_time_of_day'))->weekdays(); Schedule::command(CaptureDailyChange::class)->dailyAt(config('investbrain.daily_change_time_of_day'))->weekdays();
/** /**
* *