Skip to content

Commit

Permalink
fix(synonym): fix delete response of synonym
Browse files Browse the repository at this point in the history
  • Loading branch information
tharropoulos committed Nov 8, 2024
1 parent 1eee81d commit 4c6300e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/typesense/api/Synonym.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.typesense.api.utils.URLEncoding;
import org.typesense.model.SearchSynonym;
import org.typesense.model.SearchSynonymDeleteResponse;

public class Synonym {

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

public SearchSynonym delete() throws Exception {
return this.apiCall.delete(this.getEndpoint(), null, SearchSynonym.class);
public SearchSynonymDeleteResponse delete() throws Exception {
return this.apiCall.delete(this.getEndpoint(), null, SearchSynonymDeleteResponse.class);
}

public String getEndpoint() {
Expand Down

0 comments on commit 4c6300e

Please sign in to comment.