From 82dc43d174de06f5a94b90c2e0395b712225d3b3 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Thu, 2 Nov 2023 15:01:23 +0800 Subject: [PATCH] update --- backend/yjs/networking.yjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/yjs/networking.yjs b/backend/yjs/networking.yjs index cbabf91..11f534f 100755 --- a/backend/yjs/networking.yjs +++ b/backend/yjs/networking.yjs @@ -60,7 +60,7 @@ module networking { "msg":"no permission", "code":1 }); } - var ret = executeContract(Global.router, "updateLRS", arg); + var ret = executeContract(Global.router, "updateLRS", JSON.stringify(arg)); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined; @@ -83,7 +83,7 @@ module networking { "msg":"no permission", "code":1 }); } - var ret = executeContract(Global.router, "createLRS", arg); + var ret = executeContract(Global.router, "createLRS", JSON.stringify(arg)); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined; @@ -106,7 +106,7 @@ module networking { "msg":"no permission", "code":1 }); } - var ret = executeContract(Global.router, "deleteLRS", arg); + var ret = executeContract(Global.router, "deleteLRS", JSON.stringify(arg)); var obj = ret.result; if (obj.result=="success" || obj.result == undefined) { obj.result = undefined;