Skip to content

Commit c799dd3

Browse files
authored
Merge pull request #84 from tharropoulos/delete-params
fix(documents): add parameters to document deletion method
2 parents 8736a5a + 66b1170 commit c799dd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Document.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ public function update(array $partialDocument, array $options = []): array
7979
}
8080

8181
/**
82+
* @param array $options
8283
* @return array
8384
* @throws TypesenseClientError|HttpClientException
8485
*/
85-
public function delete(): array
86+
public function delete(array $options = []): array
8687
{
87-
return $this->apiCall->delete($this->endpointPath());
88+
return $this->apiCall->delete($this->endpointPath(), true, $options);
8889
}
8990
}

0 commit comments

Comments
 (0)