Skip to content

Commit

Permalink
fix: removing error messsages when disintegrating (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus-picoloto authored Nov 6, 2023
1 parent 5e62117 commit 768a189
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function getDashSettingsErrors()
return [];
}

$errorsList = $collection->getFirstItem()->getData()['value'];
$errorsList = $collection->getFirstItem()->getData()['value'] ?? '';
$returnData = json_decode($errorsList);
if (empty($returnData)) {
return [];
Expand Down
7 changes: 7 additions & 0 deletions Model/Api/HubCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ public function uninstallCommand()
$this->websiteId
);

$this->configWriter->save(
"pagarme_pagarme/hub/account_errors",
null,
'websites',
$this->websiteId
);

$this->cacheManager->clean(['config']);

return "Hub uninstalled successfully";
Expand Down

0 comments on commit 768a189

Please sign in to comment.