mirror of
https://github.com/typesense/typesense.git
synced 2025-05-19 21:22:25 +08:00
Return name of rule as deletion response.
This commit is contained in:
parent
f90eda277b
commit
9b8754b13d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user