- add position

This commit is contained in:
2023-07-04 01:25:02 +02:00
parent 99f0bafe93
commit 996b1b4faf
5 changed files with 38 additions and 2 deletions

View File

@@ -17,7 +17,8 @@ class UpdateCV extends Command
{--add-location=* : Add locations}
{--remove-location=* : Remove lcoations}
{--mission= : Set new text value}
{--rodo= : Set new text value}';
{--rodo= : Set new text value}
{--position= : Set position value}';
protected $description = 'Update CV element';
@@ -66,6 +67,9 @@ class UpdateCV extends Command
if ($rodo = $this->option('rodo')) {
$cv->rodo = $rodo === 'null' ? null : $rodo;
}
if ($position = $this->option('position')) {
$cv->position = $position === 'null' ? null : $position;
}
$cv->save();