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; }