remove commit to res
This commit is contained in:
@@ -53,15 +53,6 @@ namespace hack
|
|||||||
Database::instance().execute("logger", convert_to_json());
|
Database::instance().execute("logger", convert_to_json());
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename HttpResponse>
|
|
||||||
void commit(const HttpResponse& res)
|
|
||||||
{
|
|
||||||
JSON j;
|
|
||||||
j["status"] = "error";
|
|
||||||
j["result"] = m_message;
|
|
||||||
res.set_content(nlohmann::to_string(j), "application/json");
|
|
||||||
}
|
|
||||||
|
|
||||||
void commit(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE())
|
void commit(const std::filesystem::path file_name = DEF_FILE_NAME(), std::string line = DEF_LINE())
|
||||||
{
|
{
|
||||||
error("")(file_name,":", line, ": ", m_message);
|
error("")(file_name,":", line, ": ", m_message);
|
||||||
|
|||||||
Reference in New Issue
Block a user