Fix improper json formatting in executeFromType

This commit is contained in:
Lorow
2025-11-04 21:51:07 +01:00
parent 440941accb
commit 96016909c5

View File

@@ -161,5 +161,5 @@ CommandManagerResponse CommandManager::executeFromType(const CommandType type, c
return CommandManagerResponse({{"command", type}, {"error", "Unknown command"}});
}
return CommandManagerResponse({"result", command()});
return CommandManagerResponse(nlohmann::json{{"result", command()}});
}