Commit 7172a250 authored by Adrien Béraud's avatar Adrien Béraud

jams: only convert strings from search results

Change-Id: Ia4a8b9b262875c29bb4095f68cd3a017420751a7
parent 1237f6a1
......@@ -516,7 +516,9 @@ ServerAccountManager::searchUser(const std::string& query, SearchCallback cb)
const auto& ruser = json[i];
std::map<std::string, std::string> user;
for (const auto& member : ruser.getMemberNames()) {
user[member] = ruser[member].asString();
const auto& rmember = ruser[member];
if (rmember.isString())
user[member] = rmember.asString();
}
results.emplace_back(std::move(user));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment