Commit 714b93c3 authored by Volker Krause's avatar Volker Krause
Browse files

Adapt OTP prober to the new backend type format

parent d220a879
......@@ -69,7 +69,8 @@ int main(int argc, char **argv)
const auto doc = QJsonDocument::fromJson(f.readAll());
const auto obj = doc.object();
if (!obj.value(QLatin1String("type")).toString().startsWith(QLatin1String("otp_"))) {
const auto typeObj = obj.value(QLatin1String("type")).toObject();
if (!typeObj.contains(QLatin1String("otpRest")) && !typeObj.contains(QLatin1String("otpGraphQl"))) {
continue;
}
......
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