mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 I made a 0iq mistake
This commit is contained in:
parent
8a6f9f2fce
commit
8c97d19330
1 changed files with 3 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ BankResponse Bank::SetBal(const std::string &name, uint32_t amount) noexcept
|
|||
save_flag = true;
|
||||
#endif
|
||||
#endif
|
||||
return {k200OK, "true"}; //may return new balance
|
||||
return {k204NoContent, std::nullopt}; //may return new balance
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -194,7 +194,7 @@ BankResponse Bank::ImpactBal(const std::string &name, int64_t amount) noexcept
|
|||
save_flag = true;
|
||||
#endif
|
||||
#endif
|
||||
return {k200OK, "true"}; //may return new balance
|
||||
return {k204NoContent, std::nullopt}; //may return new balance
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -269,8 +269,6 @@ const char *Bank::Save()
|
|||
if (GetChangeState())
|
||||
{
|
||||
#endif
|
||||
return " to disk...\n";
|
||||
|
||||
static thread_local Json::Value temp;
|
||||
|
||||
//loading info into json temp
|
||||
|
|
@ -300,6 +298,7 @@ const char *Bank::Save()
|
|||
#else
|
||||
save_flag = true;
|
||||
#endif
|
||||
return " to disk...\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue