removed last commits console out

This commit is contained in:
EntireTwix 2021-06-14 11:04:06 -07:00
parent ead2f87ab7
commit de14e2983a

View file

@ -85,7 +85,6 @@ int_fast8_t Bank::AdminDelUser(const std::string &name, const std::string &attem
int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name, uint32_t amount, const std::string &attempt) int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name, uint32_t amount, const std::string &attempt)
{ {
std::cout << "recieved request\n";
//cant send money to self, from self or amount is 0 //cant send money to self, from self or amount is 0
if (a_name == b_name || !amount) if (a_name == b_name || !amount)
{ {
@ -118,7 +117,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
state = true; state = true;
} }
} }
std::cout << "a\n";
})) }))
{ {
if (state) if (state)
@ -128,7 +126,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
b.balance += amount; b.balance += amount;
})) }))
{ {
std::cout << "c\n";
if constexpr (max_log_size) if constexpr (max_log_size)
{ {
Transaction temp(a_name, b_name, amount); Transaction temp(a_name, b_name, amount);
@ -144,7 +141,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
} }
else else
{ {
std::cout << "d\n";
//attempt to refund if A exist //attempt to refund if A exist
users.modify_if(a_name, [amount](User &a) { users.modify_if(a_name, [amount](User &a) {
a.balance += amount; a.balance += amount;
@ -159,10 +155,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
} }
else else
{ {
{ return ErrorResponse::UserNotFound;
std::cout << "b\n";
return ErrorResponse::UserNotFound;
}
} }
} }
} }