mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
🐛 as amount can be negative now, conditional must change
This commit is contained in:
parent
cb06dd31dd
commit
4c3b521966
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ BankResponse Bank::SetBal(const std::string &name, uint32_t amount) noexcept
|
||||||
}
|
}
|
||||||
BankResponse Bank::ImpactBal(const std::string &name, int64_t amount) noexcept
|
BankResponse Bank::ImpactBal(const std::string &name, int64_t amount) noexcept
|
||||||
{
|
{
|
||||||
if (amount)
|
if (amount == 0)
|
||||||
{
|
{
|
||||||
return {k400BadRequest, "Amount cannot be 0"};
|
return {k400BadRequest, "Amount cannot be 0"};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue