api(application): fix database requests returning 404
This commit is contained in:
parent
c7d905fece
commit
0759ecb1e1
4 changed files with 8 additions and 8 deletions
|
@ -13,8 +13,8 @@ class GetDatabaseRequest extends GetDatabasesRequest
|
|||
*/
|
||||
public function resourceExists(): bool
|
||||
{
|
||||
$database = $this->route()->parameter('database');
|
||||
$databaseHost = $this->route()->parameter('databaseHost');
|
||||
|
||||
return $database instanceof DatabaseHost && $database->exists;
|
||||
return $databaseHost instanceof DatabaseHost && $databaseHost->exists;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue