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 -2
View File
@@ -39,8 +39,7 @@ class RefreshDividendData extends Command
*/
public function handle()
{
// $holdings = Holding::where('quantity', '>', 0)->distinct()->get(['symbol']);
$holdings = Holding::distinct()->get(['symbol']);
$holdings = Holding::where('quantity', '>', 0)->distinct()->get(['symbol']);
foreach ($holdings as $holding) {
$this->line('Refreshing ' . $holding->symbol);