feat: update error message
This commit is contained in:
parent
12afc294bd
commit
0d12b13241
2 changed files with 2 additions and 2 deletions
|
@ -546,7 +546,7 @@ return [
|
|||
],
|
||||
Exception::DOMAIN_FORBIDDEN => [
|
||||
'name' => Exception::DOMAIN_FORBIDDEN,
|
||||
'description' => 'The requested domain is not available for the current project.',
|
||||
'description' => 'The requested domain cannot be used as a custom domain.',
|
||||
'code' => 403,
|
||||
],
|
||||
Exception::VARIABLE_NOT_FOUND => [
|
||||
|
|
|
@ -683,7 +683,7 @@ class DeletesV1 extends Worker
|
|||
$consoleDB = $this->getConsoleDB();
|
||||
|
||||
// If domain has certificate generated
|
||||
if (isset($document['$id'])) {
|
||||
if (isset($document['certificateId'])) {
|
||||
$domainUsingCertificate = $consoleDB->findOne('domains', [
|
||||
Query::equal('certificateId', [$document['certificateId']])
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue