🐛 RETURN_ON_DEL should return bool

This commit is contained in:
William Katz 2021-07-12 17:16:25 -07:00 committed by GitHub
parent c2d8742138
commit eb282de108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,7 +165,7 @@ void api::AdminVerifyAccount(req_args) const
}
void api::ApiProperties(req_args) const
{
std::string info = "{\"version\":" + std::to_string(API_VERSION) + ",\"max_log\":" + std::to_string(MAX_LOG_SIZE) + ",\"return_on_del\":" + std::to_string(RETURN_ON_DEL);
std::string info = "{\"version\":" + std::to_string(API_VERSION) + ",\"max_log\":" + std::to_string(MAX_LOG_SIZE) + ",\"return_on_del\":" + std::to_string((bool)RETURN_ON_DEL);
if constexpr (RETURN_ON_DEL)
{
info += ",\"" + std::string(return_account) + "\"}";