- append more informations from api

This commit is contained in:
2023-07-04 01:12:05 +02:00
parent ac90d45519
commit 99f0bafe93
8 changed files with 78 additions and 3 deletions

View File

@@ -15,7 +15,9 @@ class UpdateCV extends Command
{--phone= : Phone number}
{--begin-location : Add begin}
{--add-location=* : Add locations}
{--remove-location=* : Remove lcoations}';
{--remove-location=* : Remove lcoations}
{--mission= : Set new text value}
{--rodo= : Set new text value}';
protected $description = 'Update CV element';
@@ -58,6 +60,13 @@ class UpdateCV extends Command
$cv->locations = $locations;
}
if ($mission = $this->option('mission')) {
$cv->mission = $mission === 'null' ? null : $mission;
}
if ($rodo = $this->option('rodo')) {
$cv->rodo = $rodo === 'null' ? null : $rodo;
}
$cv->save();
$this->info('Updated!');