Skip to content

Commit 4c6300e

Browse files
committed
fix(synonym): fix delete response of synonym
1 parent 1eee81d commit 4c6300e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/typesense/api/Synonym.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import org.typesense.api.utils.URLEncoding;
44
import org.typesense.model.SearchSynonym;
5+
import org.typesense.model.SearchSynonymDeleteResponse;
56

67
public class Synonym {
78

@@ -19,8 +20,8 @@ public SearchSynonym retrieve() throws Exception {
1920
return this.apiCall.get(this.getEndpoint(), null, SearchSynonym.class);
2021
}
2122

22-
public SearchSynonym delete() throws Exception {
23-
return this.apiCall.delete(this.getEndpoint(), null, SearchSynonym.class);
23+
public SearchSynonymDeleteResponse delete() throws Exception {
24+
return this.apiCall.delete(this.getEndpoint(), null, SearchSynonymDeleteResponse.class);
2425
}
2526

2627
public String getEndpoint() {

0 commit comments

Comments
 (0)