for nullable types we'll need to create a proper function outside the template for them

This commit is contained in:
DarthArgus
2016-09-26 06:24:21 +00:00
parent 51fa1ff6ad
commit dd9417642c
4 changed files with 24 additions and 11 deletions
@@ -2877,11 +2877,11 @@ void CentralServer::sendMetricsToWebAPI()
#ifdef _DEBUG
if (api.submit()) {
bool status = api.getRespValue<bool>("status");
bool status = api.getNullableValue<bool>("status");
if (status)
{
std::string message = api.getRespValue<std::string>("message");
std::string message = api.getString("message");
if (message.empty())
{