From 13cafcca859c3b632523052b36a15425fb3883ed Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Mon, 19 Apr 2021 03:18:53 -0700 Subject: [PATCH] fixed allusers --- include/bank.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/bank.hpp b/include/bank.hpp index d2ed3a4..9a199ba 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -156,7 +156,9 @@ public: { //we know it contains this key but we call this func to grab mutex temp[i++]["name"] = u.first; - temp[i]["balance"] = u.second.balance; + users.if_contains(u.first, [&temp, i](const User &u) { + temp[i]["balance"] = u.balance; + }); } return temp; }