mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
removed last commits console out
This commit is contained in:
parent
ead2f87ab7
commit
de14e2983a
1 changed files with 1 additions and 8 deletions
|
|
@ -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)
|
||||
{
|
||||
std::cout << "recieved request\n";
|
||||
//cant send money to self, from self or amount is 0
|
||||
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;
|
||||
}
|
||||
}
|
||||
std::cout << "a\n";
|
||||
}))
|
||||
{
|
||||
if (state)
|
||||
|
|
@ -128,7 +126,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
|
|||
b.balance += amount;
|
||||
}))
|
||||
{
|
||||
std::cout << "c\n";
|
||||
if constexpr (max_log_size)
|
||||
{
|
||||
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
|
||||
{
|
||||
std::cout << "d\n";
|
||||
//attempt to refund if A exist
|
||||
users.modify_if(a_name, [amount](User &a) {
|
||||
a.balance += amount;
|
||||
|
|
@ -159,10 +155,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
|
|||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
std::cout << "b\n";
|
||||
return ErrorResponse::UserNotFound;
|
||||
}
|
||||
return ErrorResponse::UserNotFound;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue