clean up scheduled commands

also add comments to each command
This commit is contained in:
hackerESQ
2024-09-05 21:21:18 -05:00
parent 6f63ac7067
commit 8511cc833d
12 changed files with 51 additions and 35 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class CaptureDailyChange extends Command
return $holding->market_data->market_value * $holding->quantity;
});
$portfolio->daily_changes()->create([
$portfolio->daily_change()->create([
'date' => now(),
'total_market_value' => $total_market_value,
'total_cost_basis' => $total_cost_basis,