Skip to content

Commit 355b486

Browse files
committed
fix: update config organization_Id to organization_id
1 parent 0a088b4 commit 355b486

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

CoCreate.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
"config": {
33
"apiKey": "2061acef-0451-4545-f754-60cf8160",
4-
"organization_Id": "5ff747727005da1c272740ab",
4+
"organization_id": "5ff747727005da1c272740ab",
55
"host": "general.cocreate.app"
66
},
77
"sources": [

demo/CoCreate-xxx.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<script>
2525
var config = {
2626
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
27-
organization_Id: '5de0387b12e200ea63204d6c'
27+
organization_id: '5de0387b12e200ea63204d6c'
2828
}
2929
</script>
3030

src/index.1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ const { crud, extract, sources, config : socketConfig } = config;
2525
let socket = new CoCreateSocket("ws");
2626
CoCreateCrud.setSocket(socket);
2727
socket.create({
28-
namespace: socketConfig.organization_Id,
28+
namespace: socketConfig.organization_id,
2929
room: null,
3030
host: socketConfig.host
3131
})
3232

3333
const commonParam = {
3434
apiKey : socketConfig.apiKey,
35-
organization_id : socketConfig.organization_Id,
35+
organization_id : socketConfig.organization_id,
3636
broadcast: false
3737
}
3838

src/index.2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0
2929
let socket = new CoCreateSocket("ws");
3030
CoCreateCrud.setSocket(socket);
3131
socket.create({
32-
namespace: socketConfig.organization_Id,
32+
namespace: socketConfig.organization_id,
3333
room: null,
3434
host: socketConfig.host
3535
})
3636

3737
const commonParam = {
3838
apiKey : socketConfig.apiKey,
39-
organization_id : socketConfig.organization_Id,
39+
organization_id : socketConfig.organization_id,
4040
broadcast: false
4141
}
4242

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0
2828
let socket = new CoCreateSocket("ws");
2929
CoCreateCrud.setSocket(socket);
3030
socket.create({
31-
namespace: socketConfig.organization_Id,
31+
namespace: socketConfig.organization_id,
3232
room: null,
3333
host: socketConfig.host
3434
})
3535

3636
const commonParam = {
3737
apiKey : socketConfig.apiKey,
38-
organization_id : socketConfig.organization_Id,
38+
organization_id : socketConfig.organization_id,
3939
broadcast: false
4040
}
4141

test_files/CoCreate.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const CoCreate = {
208208
return {
209209
"apiKey": config.apiKey,
210210
"securityKey": config.securityKey,
211-
"organization_id": config.organization_Id,
211+
"organization_id": config.organization_id,
212212
}
213213
},
214214

@@ -298,7 +298,7 @@ const CoCreate = {
298298
let data = info.data || {};
299299

300300
if (!data['organization_id']) {
301-
data['organization_id'] = config.organization_Id
301+
data['organization_id'] = config.organization_id
302302
}
303303

304304
request_data['data'] = data;
@@ -321,7 +321,7 @@ const CoCreate = {
321321
},
322322

323323
generateSocketClient: function (namespace, room) {
324-
let ns = namespace || config.organization_Id
324+
let ns = namespace || config.organization_id
325325
let rr = room || '';
326326
if (rr) {
327327
return `${ns}/${rr}`
@@ -460,7 +460,7 @@ const CoCreate = {
460460
if (!collection || !document_id || !name) {
461461
return null;
462462
}
463-
return CoCreateYSocket.generateID(config.organization_Id, collection, document_id, name);
463+
return CoCreateYSocket.generateID(config.organization_id, collection, document_id, name);
464464

465465
},
466466

@@ -748,5 +748,5 @@ const CoCreate = {
748748
}
749749

750750

751-
CoCreate.init('server.cocreate.app:8088', config.organization_Id);
751+
CoCreate.init('server.cocreate.app:8088', config.organization_id);
752752

test_files/test.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<script>
3333
var config = {
3434
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
35-
organization_Id: '5de0387b12e200ea63204d6c'
35+
organization_id: '5de0387b12e200ea63204d6c'
3636
}
3737
</script>
3838

test_files/test2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<script>
2424
var config = {
2525
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
26-
organization_Id: '5de0387b12e200ea63204d6c'
26+
organization_id: '5de0387b12e200ea63204d6c'
2727
}
2828
</script>
2929

0 commit comments

Comments
 (0)