diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-22 19:23:22 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-22 19:29:54 -0400 |
commit | ca5ed50655b744ae4d3242b2105676a43d1482e0 (patch) | |
tree | ac342b98c89c4a15d536e8e1e98ea9f753154e32 /src/web_service/telemetry_json.cpp | |
parent | 3ea3de4ecd9a03da23b9e823ecc454481a60c3b9 (diff) |
web_service: Move web_result.h into web_service
This is the only place it's actively used. It's also more appropriate
for web-related structures to be within the web service target.
Especially given this one doesn't rely on anything in the common
library.
Diffstat (limited to 'src/web_service/telemetry_json.cpp')
-rw-r--r-- | src/web_service/telemetry_json.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web_service/telemetry_json.cpp b/src/web_service/telemetry_json.cpp index c89a3a0db..6215c914f 100644 --- a/src/web_service/telemetry_json.cpp +++ b/src/web_service/telemetry_json.cpp @@ -4,9 +4,9 @@ #include <nlohmann/json.hpp> #include "common/detached_tasks.h" -#include "common/web_result.h" #include "web_service/telemetry_json.h" #include "web_service/web_backend.h" +#include "web_service/web_result.h" namespace WebService { @@ -125,7 +125,7 @@ bool TelemetryJson::SubmitTestcase() { Client client(impl->host, impl->username, impl->token); auto value = client.PostJson("/gamedb/testcase", content, false); - return value.result_code == Common::WebResult::Code::Success; + return value.result_code == WebResult::Code::Success; } } // namespace WebService |