mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐎 improved saving for when logs are disabled
This commit is contained in:
parent
239573e246
commit
aa91026012
1 changed files with 4 additions and 1 deletions
|
|
@ -57,7 +57,10 @@ struct User
|
|||
Json::Value res;
|
||||
res["balance"] = (Json::UInt)balance;
|
||||
res["password"] = (Json::UInt64)password;
|
||||
res["log"] = log.Serialize();
|
||||
if constexpr (max_log_size)
|
||||
{
|
||||
res["log"] = log.Serialize();
|
||||
}
|
||||
return res;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue