updated ApiProperties

This commit is contained in:
EntireTwix 2021-07-19 22:35:33 -07:00
parent 0c15121ef0
commit 9212edb9a3

View file

@ -214,10 +214,10 @@ void api::AdminVerifyAccount(req_args) const
} }
void api::ApiProperties(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((bool)RETURN_ON_DEL); std::string info = "{\"version\":" + std::to_string(API_VERSION) + ",\"max_log\":" + std::to_string(MAX_LOG_SIZE);
if constexpr (RETURN_ON_DEL) if constexpr (RETURN_ON_DEL)
{ {
info += ",\"" + std::string(return_account) + "\"}"; info += ",\"return_on_del\":\"" + std::string(return_account) + "\"}";
} }
else else
{ {