allusers returns balance now

This commit is contained in:
EntireTwix 2021-04-19 03:17:18 -07:00
parent 90c99d59be
commit 3f4f9e0fe2

View file

@ -155,7 +155,8 @@ public:
for (const auto &u : users) for (const auto &u : users)
{ {
//we know it contains this key but we call this func to grab mutex //we know it contains this key but we call this func to grab mutex
temp[i++] = u.first; temp[i++]["name"] = u.first;
temp[i]["balance"] = u.second.balance;
} }
return temp; return temp;
} }