summaryrefslogtreecommitdiff
path: root/modules/rpc/jsonrpc.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-14 19:47:33 +0000
committerSadie Powell <sadie@witchery.services>2025-02-14 19:47:33 +0000
commit84b0859e8dec22a03fa42b822146d7666058c557 (patch)
tree0723c562463347b40006e799f22a84a5d88be82c /modules/rpc/jsonrpc.cpp
parentddce28c055ab2820760bf0ddffa353def3402b6d (diff)
Fix the naming convention of the RPC methods.
Diffstat (limited to 'modules/rpc/jsonrpc.cpp')
-rw-r--r--modules/rpc/jsonrpc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/rpc/jsonrpc.cpp b/modules/rpc/jsonrpc.cpp
index 975c889de..9be352571 100644
--- a/modules/rpc/jsonrpc.cpp
+++ b/modules/rpc/jsonrpc.cpp
@@ -122,7 +122,7 @@ public:
if (!e->Run(this, client, request))
return false;
- else if (!request.get_replies().empty())
+ else if (!request.GetReplies().empty())
{
this->Reply(request);
return true;
@@ -147,10 +147,10 @@ public:
else
yyjson_mut_obj_add_strn(doc, root, "id", request.id.c_str(), request.id.length());
- if (!request.get_replies().empty())
+ if (!request.GetReplies().empty())
{
auto *result = yyjson_mut_obj(doc);
- for (const auto &[k, v] : request.get_replies())
+ for (const auto &[k, v] : request.GetReplies())
yyjson_mut_obj_add_strn(doc, result, k.c_str(), v.c_str(), v.length());
yyjson_mut_obj_add_val(doc, root, "result", result);
}