1
0
Fork 0

Inherit ApiResponse from Response

This commit is contained in:
Philipp Holzer 2021-11-21 21:52:36 +01:00
commit 537b74f307
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
46 changed files with 326 additions and 277 deletions

View file

@ -64,7 +64,7 @@ class Delete extends BaseApi
Item::deleteForUser($condition, $uid);
$result = ['result' => 'deleted', 'message' => 'photo with id `' . $request['photo_id'] . '` has been deleted from server.'];
DI::apiResponse()->exit('photo_delete', ['$result' => $result], $this->parameters['extension'] ?? null);
$this->response->exit('photo_delete', ['$result' => $result], $this->parameters['extension'] ?? null);
} else {
throw new InternalServerErrorException("unknown error on deleting photo from database table");
}