From 3f4f9e0fe23e586417efa4c726aea00c0c39813e Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Mon, 19 Apr 2021 03:17:18 -0700 Subject: [PATCH] allusers returns balance now --- include/bank.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/bank.hpp b/include/bank.hpp index ffe5286..d2ed3a4 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -155,7 +155,8 @@ public: for (const auto &u : users) { //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; }