Modify how deletion service works (actually fixes #2085); cover changes with test

This commit is contained in:
Dane Everitt
2020-10-08 21:08:55 -07:00
parent 7a643beee0
commit 2560163655
8 changed files with 205 additions and 203 deletions

View File

@@ -129,7 +129,7 @@ class DatabaseController extends ClientApiController
*/
public function delete(DeleteDatabaseRequest $request, Server $server, Database $database): Response
{
$this->managementService->delete($database->id);
$this->managementService->delete($database);
return Response::create('', Response::HTTP_NO_CONTENT);
}