🐛 fixed massive send without b_name existing

This commit is contained in:
EntireTwix 2021-07-01 21:18:12 -07:00
parent 48117b1834
commit d3393e8084

View file

@ -74,7 +74,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
return ErrorResponse::InvalidRequest;
}
//as first modify_if checks a_name and grabs unique lock
if (!Contains(b_name))
if (Contains(b_name) != true)
{
return ErrorResponse::UserNotFound;
}
@ -92,7 +92,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
}
else if (a.password != XXH3_64bits(attempt.data(), attempt.size()))
{
state = ErrorResponse::WrongPassword;
}
else