|
@@ -1,9 +1,7 @@
|
|
#include "QueriesCtrlRaw.h"
|
|
#include "QueriesCtrlRaw.h"
|
|
-#include "models/World.h"
|
|
|
|
|
|
+#include "World_raw.h"
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
-using namespace drogon_model::hello_world;
|
|
|
|
-
|
|
|
|
using namespace drogon::orm;
|
|
using namespace drogon::orm;
|
|
void QueriesCtrlRaw::asyncHandleHttpRequest(
|
|
void QueriesCtrlRaw::asyncHandleHttpRequest(
|
|
const HttpRequestPtr &req,
|
|
const HttpRequestPtr &req,
|
|
@@ -46,7 +44,8 @@ void QueriesCtrlRaw::asyncHandleHttpRequest(
|
|
(*counter)--;
|
|
(*counter)--;
|
|
if ((*counter) == 0)
|
|
if ((*counter) == 0)
|
|
{
|
|
{
|
|
- (*callbackPtr)(HttpResponse::newHttpJsonResponse(std::move(*json)));
|
|
|
|
|
|
+ (*callbackPtr)(HttpResponse::newHttpJsonResponse(
|
|
|
|
+ std::move(*json)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
@@ -55,7 +54,8 @@ void QueriesCtrlRaw::asyncHandleHttpRequest(
|
|
Json::Value json{};
|
|
Json::Value json{};
|
|
json["code"] = 0;
|
|
json["code"] = 0;
|
|
json["message"] = "Internal error";
|
|
json["message"] = "Internal error";
|
|
- (*callbackPtr)(HttpResponse::newHttpJsonResponse(std::move(json)));
|
|
|
|
|
|
+ (*callbackPtr)(
|
|
|
|
+ HttpResponse::newHttpJsonResponse(std::move(json)));
|
|
}
|
|
}
|
|
} >>
|
|
} >>
|
|
[callbackPtr, counter](const DrogonDbException &e) {
|
|
[callbackPtr, counter](const DrogonDbException &e) {
|