mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
b message parser
fix command parser returning null when sending empty command
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user