File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ class CoCreateUser {
4141 if ( data . user ) {
4242 data . user . method = "object.create" ;
4343 data . user . host = data . host ;
44+ if ( ! data . user . organization_id ) {
45+ data . user . organization_id = data . organization_id ;
46+ data . userKey . organization_id = data . organization_id ;
47+ }
4448 let createdUser = await this . crud . send ( data . user ) ;
4549 if ( data . userKey && createdUser . object [ 0 ] && createdUser . object [ 0 ] . _id ) {
4650 data . userKey . object . key = createdUser . object [ 0 ] . _id ;
@@ -50,6 +54,9 @@ class CoCreateUser {
5054 if ( data . userKey ) {
5155 data . userKey . method = "object.create" ;
5256 data . userKey . host = data . host ;
57+ if ( ! data . userKey . organization_id ) {
58+ data . userKey . organization_id = data . organization_id ;
59+ }
5360 await this . crud . send ( data . userKey ) ;
5461 }
5562
You can’t perform that action at this time.
0 commit comments