Fix update branches for exist environment
This commit is contained in:
parent
9f4e92fe68
commit
0c9036af7f
|
@ -860,6 +860,7 @@ class Project extends Model
|
|||
// already exist
|
||||
unset($environments_names[$key]);
|
||||
$environment->setBranches(!empty($environments_config[$environment->getName()]) ? $environments_config[$environment->getName()] : []);
|
||||
$store->save($environment);
|
||||
} else {
|
||||
// remove
|
||||
$store->delete($environment);
|
||||
|
|
Loading…
Reference in a new issue