mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
⏪
This commit is contained in:
parent
297b184a11
commit
cb06dd31dd
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ bool Bank::GetChangeState() const noexcept
|
|||
|
||||
BankResponse Bank::GetBal(const std::string &name) const noexcept
|
||||
{
|
||||
uint64_t res = 0;
|
||||
uint32_t res = 0;
|
||||
users.if_contains(name, [&res](const User &u) { res = u.balance + 1; });
|
||||
return res ? BankResponse(k200OK, res - 1) : BankResponse(k404NotFound, "User not found");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue