1
0

Update WorldWeb.cpp

This commit is contained in:
Emagi 2024-10-17 09:12:53 -04:00
parent 88a7e3b295
commit 7c04bc7e91

View File

@ -133,6 +133,9 @@ void World::Web_worldhandle_reloadrules(const http::request<http::string_body>&
res.set(http::field::content_type, "application/json");
boost::property_tree::ptree pt, json_tree;
std::istringstream json_stream(req.body());
boost::property_tree::read_json(json_stream, json_tree);
database.LoadRuleSets(true);
pt.put("success", 1);