Skip to content

Commit a31cbee

Browse files
29 added
1 parent 57689f6 commit a31cbee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codebolt/codeboltjs",
3-
"version": "1.1.28",
3+
"version": "1.1.29",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/modules/codeutils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const cbcodeutils = {
3131
}));
3232
cbws.getWebsocket.on('message', (data: string) => {
3333
const response = JSON.parse(data);
34-
if (response.type === "getgetJsTreeResponse") {
35-
resolve(response.payload); // Resolve the Promise with the response data
34+
if (response.type === "getJsTreeResponse") {
35+
resolve(resolve); // Resolve the Promise with the response data
3636
}
3737
});
3838
});
@@ -65,7 +65,7 @@ const cbcodeutils = {
6565
cbws.getWebsocket.on('message', (data: string) => {
6666
const response = JSON.parse(data);
6767
if (response.type === "getgetJsTreeResponse") {
68-
resolve(response.payload); // Resolve the Promise with the response data
68+
resolve(resolve); // Resolve the Promise with the response data
6969
}
7070
});
7171
});

0 commit comments

Comments
 (0)