Skip to content

Commit 05c0557

Browse files
committed
update
1 parent b81cf5d commit 05c0557

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/socket_process.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ module.exports.CoCreateUpdateDocument = function (info, config) {
2222

2323
if (!info.collection || !info.document_id ) return;
2424

25+
if (!info.data.organization_id) {
26+
info.data.organization_id = config.organization_Id;
27+
}
28+
2529
request_data['set'] = info.data;
2630
request_data['collection'] = info.collection
2731
request_data['document_id'] = info.document_id
@@ -41,7 +45,11 @@ module.exports.CoCreateCreateDocument = function (info, config) {
4145
"organization_id": config.organization_Id,
4246
}
4347

48+
if (!info.data.organization_id) {
49+
info.data.organization_id = config.organization_Id;
50+
}
4451
let request_data = {...info, ...commonParams};
52+
4553
CoCreateSocket.send('createDocument', request_data, '')
4654
}
4755

0 commit comments

Comments
 (0)