improve sync daily changes command

This commit is contained in:
hackerESQ
2024-09-15 11:28:13 -05:00
parent 9708716c71
commit 9696339828
5 changed files with 73 additions and 16 deletions
+3 -1
View File
@@ -64,9 +64,11 @@ class SyncDailyChange extends Command implements PromptsForMissingInput
$portfolio = Portfolio::findOrFail($this->argument('portfolio_id'));
$this->output->write('Syncing daily change history... This may take a moment.', false);
$portfolio->syncDailyChanges();
$this->line('Awesome! Daily change history for '. $portfolio->title .' has been completed.');
$this->output->write('Awesome! Daily change history for '. $portfolio->title .' has been completed.', false);
} catch (\Throwable $e) {