From 52bbfc63719950b7e20a48f1240c034c4220329c Mon Sep 17 00:00:00 2001 From: RAHEEL Date: Sun, 17 Sep 2023 21:45:12 +0500 Subject: [PATCH] fix: fixed stream query broadcast method params --- .../lowcoder/src/comps/queries/httpQuery/streamQuery.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/packages/lowcoder/src/comps/queries/httpQuery/streamQuery.tsx b/client/packages/lowcoder/src/comps/queries/httpQuery/streamQuery.tsx index 32d952f03..29737b0b1 100644 --- a/client/packages/lowcoder/src/comps/queries/httpQuery/streamQuery.tsx +++ b/client/packages/lowcoder/src/comps/queries/httpQuery/streamQuery.tsx @@ -64,7 +64,7 @@ StreamTmpQuery = withMethodExposing(StreamTmpQuery, [ { method: { name: "broadcast", - params: [{ name: "args", type: "JSON" }], + params: [{ name: "data", type: "JSON" }], }, execute: (comp, params) => { return new Promise((resolve, reject) => { @@ -72,7 +72,7 @@ StreamTmpQuery = withMethodExposing(StreamTmpQuery, [ if(!tmpComp.getSocket()) { return reject('Socket message send failed') } - tmpComp.broadcast(params); + tmpComp.broadcast(params[0]); resolve({}); }) },