Skip to content

Commit

Permalink
BUGFIX: Use correct path when deleting a document by id (#90)
Browse files Browse the repository at this point in the history
BUGFIX: Use correct path to delete a document via id
  • Loading branch information
DrillSergeant authored Jan 4, 2021
1 parent 1f94013 commit 6fb1f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function request(string $method, ?string $path = null, array $arguments =
*/
public function deleteDocumentById(string $id): bool
{
$response = $this->request('DELETE', '/' . $id);
$response = $this->request('DELETE', '/_doc/' . $id);
$treatedContent = $response->getTreatedContent();

return $response->getStatusCode() === 200 && $treatedContent['result'] === 'deleted';
Expand Down

0 comments on commit 6fb1f14

Please sign in to comment.