🐎 improved saving for when logs are disabled

This commit is contained in:
EntireTwix 2021-05-28 16:20:21 -07:00
parent 239573e246
commit aa91026012

View file

@ -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;
}
};