From 8a935345c508865ed85f3be78d01a222ed9dd2d4 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 4 Jul 2024 14:58:14 +0900 Subject: [PATCH] Update catproxy.js --- lib/catproxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/catproxy.js b/lib/catproxy.js index 9919aac..eec1e74 100644 --- a/lib/catproxy.js +++ b/lib/catproxy.js @@ -34,7 +34,7 @@ function CatProxyClient(url) { return; } } - this.exec = function() { + this.exec = function(params) { var args = Array.from(arguments); var rpc = JSONRPC2.create(env.target); var result; @@ -51,7 +51,7 @@ function CatProxyClient(url) { "query": query }, null); } else { - result = rpc.invoke(env.method, {}, null); + result = rpc.invoke(env.method, params, null); } return result;