reversed endpoint to match new internal structure

This commit is contained in:
William Katz 2021-06-03 18:16:56 -07:00 committed by GitHub
parent fa95322032
commit 5e4113bf8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
} }
})) }))
{ {