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;