1
0
Fork 0
mirror of synced 2024-10-03 02:37:40 +13:00

feat: update error message

This commit is contained in:
Christy Jacob 2023-05-14 01:48:51 +05:30
parent 12afc294bd
commit 0d12b13241
2 changed files with 2 additions and 2 deletions

View file

@ -546,7 +546,7 @@ return [
], ],
Exception::DOMAIN_FORBIDDEN => [ Exception::DOMAIN_FORBIDDEN => [
'name' => 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, 'code' => 403,
], ],
Exception::VARIABLE_NOT_FOUND => [ Exception::VARIABLE_NOT_FOUND => [

View file

@ -683,7 +683,7 @@ class DeletesV1 extends Worker
$consoleDB = $this->getConsoleDB(); $consoleDB = $this->getConsoleDB();
// If domain has certificate generated // If domain has certificate generated
if (isset($document['$id'])) { if (isset($document['certificateId'])) {
$domainUsingCertificate = $consoleDB->findOne('domains', [ $domainUsingCertificate = $consoleDB->findOne('domains', [
Query::equal('certificateId', [$document['certificateId']]) Query::equal('certificateId', [$document['certificateId']])
]); ]);