b message parser

fix command parser returning null when sending empty command
This commit is contained in:
2024-08-27 16:42:14 +02:00
parent 1efd73cfb5
commit 5d8db074de
+1 -1
View File
@@ -24,7 +24,7 @@ std::string message_parser(std::string message)
json command_parser(json command) json command_parser(json command)
{ {
json j; json j = "{}"_json;
try try
{ {
std::string type = command.at("type"); std::string type = command.at("type");