mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
🎨 corrected RESPONSE_PARSE
This commit is contained in:
parent
d92bc60e79
commit
482e8709a7
1 changed files with 1 additions and 2 deletions
|
|
@ -8,8 +8,7 @@
|
||||||
const auto body = temp_req ? *temp_req : Json::Value();
|
const auto body = temp_req ? *temp_req : Json::Value();
|
||||||
|
|
||||||
#define RESPONSE_PARSE(R) \
|
#define RESPONSE_PARSE(R) \
|
||||||
\
|
const auto r = R; \
|
||||||
auto r = R; \
|
|
||||||
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(std::move(r.second))); \
|
auto resp = HttpResponse::newHttpJsonResponse(JsonCast(std::move(r.second))); \
|
||||||
resp->setStatusCode(r.first); \
|
resp->setStatusCode(r.first); \
|
||||||
callback(resp);
|
callback(resp);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue