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 | 77d6d3bf4bd3982841e1e65f1bac6492a3305301 (patch) | |
| tree | ac342b98c89c4a15d536e8e1e98ea9f753154e32 /src/web_service/telemetry_json.cpp | |
| parent | ded348b94a951e7f5b64492e18bfd0f9b4f8d284 (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 c89a3a0db1..6215c914ff 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 |
