mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
reversed endpoint to match new internal structure
This commit is contained in:
parent
fa95322032
commit
5e4113bf8f
1 changed files with 10 additions and 1 deletions
|
|
@ -179,7 +179,16 @@ public:
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
res = u.log.Serialize();
|
Json::Value temp;
|
||||||
|
for (uint32_t i = u.log.data.size(); i > 0; --i)
|
||||||
|
{
|
||||||
|
std::cout << i << '\n';
|
||||||
|
temp[i - 1]["to"] = u.log.data[i - 1].to;
|
||||||
|
temp[i - 1]["from"] = u.log.data[i - 1].from;
|
||||||
|
temp[i - 1]["amount"] = (Json::UInt)u.log.data[i - 1].amount;
|
||||||
|
temp[i - 1]["time"] = (Json::UInt64)u.log.data[i - 1].time;
|
||||||
|
}
|
||||||
|
res = std::move(temp);
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue