Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Return name of rule as deletion response.

Kishore Nallan9b8754b13d12
diff --git a/src/core_api.cpp b/src/core_api.cpp
index 0c9cd0e5..b2b993c8 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -2151,7 +2151,10 @@ bool del_analytics_rules(const std::shared_ptr<http_req>& req, const std::shared
return false;
}
- res->set_200(R"({"ok": true})");
+ nlohmann::json res_json;
+ res_json["name"] = req->params["name"];
+
+ res->set_200(res_json.dump());
return true;
}