Skip to content

Commit

Permalink
Merge pull request #36 from Irinina/master
Browse files Browse the repository at this point in the history
Update EncryptExistingApiKeys.php
  • Loading branch information
amenk authored Jan 5, 2024
2 parents 15e47d1 + ba6b4ab commit d93c81a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Setup/Patch/Data/EncryptExistingApiKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function apply(): self
->addFieldToFilter('path', Config::CONFIG_PATH_APIEKEY);
/** @var ConfigValue $configValue */
foreach ($configValues as $configValue) {
if (!$configValue->getValue()) {
continue;
}
$this->writer->save(
$configValue->getPath(),
$this->encryptor->encrypt($configValue->getValue()),
Expand Down

0 comments on commit d93c81a

Please sign in to comment.