Skip to content
Snippets Groups Projects
Verified Commit cc0e9dff authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix parser mistake of key signature upload response

parent e5284ccc
No related branches found
No related tags found
No related merge requests found
Pipeline #1956 failed
......@@ -43,8 +43,8 @@ to_json(nlohmann::json &obj, const QueryKeys &response)
void
from_json(const nlohmann::json &obj, KeySignaturesUpload &response)
{
if (!obj.empty())
response.errors = obj.get<decltype(response.errors)>();
if (obj.contains("failures"))
response.errors = obj.at("failures").get<decltype(response.errors)>();
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment