mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
incremented too soon in allusers
This commit is contained in:
parent
a80f6b5959
commit
32b6af280e
1 changed files with 2 additions and 1 deletions
|
|
@ -155,10 +155,11 @@ public:
|
|||
for (const auto &u : users)
|
||||
{
|
||||
//we know it contains this key but we call this func to grab mutex
|
||||
temp[i++]["name"] = u.first;
|
||||
temp[i]["name"] = u.first;
|
||||
users.if_contains(u.first, [&temp, i](const User &u) {
|
||||
temp[i]["balance"] = (Json::UInt)u.balance;
|
||||
});
|
||||
++i;
|
||||
}
|
||||
return temp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue