File tree 5 files changed +14
-23
lines changed
libs/nest-multi-tenant/src
5 files changed +14
-23
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ mongodb:
10
10
11
11
payment :
12
12
stripe :
13
- secretKey : " sk_test_HT0RcNMg3LxROE7v099gcwIs00WUH3Ljm9 "
14
- publishKey : " pk_test_VXYW9SvpksV2DC2bVVZYKM2w "
13
+ secretKey : " sk_test_************************** "
14
+ publishKey : " pk_test_**************************** "
15
15
16
16
eventstore :
17
17
poolMax :
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ mongodb:
10
10
11
11
payment :
12
12
stripe :
13
- secretKey : " sk_test_HT0RcNMg3LxROE7v099gcwIs00WUH3Ljm9 "
14
- publishKey : " pk_test_VXYW9SvpksV2DC2bVVZYKM2w "
13
+ secretKey : " sk_test_************************** "
14
+ publishKey : " pk_test_**************************** "
15
15
16
16
eventstore :
17
17
poolMax :
@@ -86,18 +86,17 @@ services:
86
86
grpcPort : 7300
87
87
mongodb :
88
88
uri : ${mongodb.defaultUri}
89
- name : " service-payment "
89
+ name : " service-billing "
90
90
options :
91
91
92
- plan :
92
+ payment :
93
93
port : 9500
94
94
grpcPort : 7500
95
95
mongodb :
96
96
uri : ${mongodb.defaultUri}
97
97
name : " service-payment"
98
98
options :
99
99
100
-
101
100
gateway :
102
101
admin :
103
102
port : 4000
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ mongodb:
10
10
11
11
payment :
12
12
stripe :
13
- secretKey : " sk_test_HT0RcNMg3LxROE7v099gcwIs00WUH3Ljm9 "
14
- publishKey : " pk_test_VXYW9SvpksV2DC2bVVZYKM2w "
13
+ secretKey : " sk_test_************************** "
14
+ publishKey : " pk_test_**************************** "
15
15
16
16
eventstore :
17
17
poolMax :
@@ -86,18 +86,17 @@ services:
86
86
grpcPort : 7300
87
87
mongodb :
88
88
uri : ${mongodb.defaultUri}
89
- name : " service-payment "
89
+ name : " service-billing "
90
90
options :
91
91
92
- plan :
92
+ payment :
93
93
port : 9500
94
94
grpcPort : 7500
95
95
mongodb :
96
96
uri : ${mongodb.defaultUri}
97
97
name : " service-payment"
98
98
options :
99
99
100
-
101
100
gateway :
102
101
admin :
103
102
port : 4000
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ mongodb:
10
10
11
11
payment :
12
12
stripe :
13
- secretKey : " sk_test_HT0RcNMg3LxROE7v099gcwIs00WUH3Ljm9 "
14
- publishKey : " pk_test_VXYW9SvpksV2DC2bVVZYKM2w "
13
+ secretKey : " sk_test_************************** "
14
+ publishKey : " pk_test_**************************** "
15
15
16
16
eventstore :
17
17
poolMax :
@@ -86,18 +86,17 @@ services:
86
86
grpcPort : 7300
87
87
mongodb :
88
88
uri : ${mongodb.defaultUri}
89
- name : " service-payment "
89
+ name : " service-billing "
90
90
options :
91
91
92
- plan :
92
+ payment :
93
93
port : 9500
94
94
grpcPort : 7500
95
95
mongodb :
96
96
uri : ${mongodb.defaultUri}
97
97
name : " service-payment"
98
98
options :
99
99
100
-
101
100
gateway :
102
101
admin :
103
102
port : 4000
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export class MultiTenantService {
13
13
) { }
14
14
15
15
async createMongoOptions ( ) : Promise < MongoModuleOptions > {
16
- console . log ( '****************' ) ;
17
16
let req = null ;
18
17
19
18
if ( this . context ) {
@@ -22,14 +21,9 @@ export class MultiTenantService {
22
21
req = this . request ;
23
22
}
24
23
25
- console . log ( '****************' ) ;
26
-
27
24
const dbUri = process . env . DATABASE_URI || AppConfig . services ?. project ?. mongodb ?. uri ;
28
25
const dbUriWithName = ( process . env . DATABASE_URI || AppConfig . services ?. project ?. mongodb ?. uri ) + AppConfig . services ?. project ?. mongodb ?. name ;
29
26
30
- console . log ( '********dbUri********' , dbUri ) ;
31
- console . log ( '********dbUriWithName********' , dbUriWithName ) ;
32
-
33
27
if ( req === null || req === undefined ) {
34
28
return {
35
29
uri : process . env . DATABASE_URI || dbUriWithName ,
You can’t perform that action at this time.
0 commit comments