Commit dfd7d95b authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[TASK] Check for composer name only on successful database update

parent 2d32b663
Pipeline #10537 failed with stages
in 2 minutes and 45 seconds
......@@ -103,15 +103,19 @@ class KeyService extends AbstractService
$formDataStore = $formDataStore->withProperty(new IntegerData('tags', [], $tagsCount));
}
if ($formDataStore->hasProperty('composer_name')) {
$this->requestUpdateOfValidComposerNamesFile();
}
foreach ($formDataStore->getProperties() as $property) {
$fieldsToUpdate[$property->getName()] = $property->getValue();
}
return (bool)$this->extensionRepository->update($this->key, $fieldsToUpdate);
if (!$this->extensionRepository->update($this->key, $fieldsToUpdate)) {
return false;
}
if ($formDataStore->hasProperty('composer_name')) {
$this->requestUpdateOfValidComposerNamesFile();
}
return true;
}
public function delete(): bool
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment