From 4c6300e4344a730cc16af4013997cd11d7f142d3 Mon Sep 17 00:00:00 2001 From: Fanis Tharropoulos Date: Fri, 8 Nov 2024 15:40:32 +0200 Subject: [PATCH] fix(synonym): fix delete response of synonym --- src/main/java/org/typesense/api/Synonym.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/typesense/api/Synonym.java b/src/main/java/org/typesense/api/Synonym.java index d7e0340..4ec97d2 100644 --- a/src/main/java/org/typesense/api/Synonym.java +++ b/src/main/java/org/typesense/api/Synonym.java @@ -2,6 +2,7 @@ import org.typesense.api.utils.URLEncoding; import org.typesense.model.SearchSynonym; +import org.typesense.model.SearchSynonymDeleteResponse; public class Synonym { @@ -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() {