File tree 2 files changed +20
-1
lines changed
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,20 @@ export class SupertokensSyncService {
79
79
} ;
80
80
}
81
81
82
+ controlTenants ( {
83
+ devTenants,
84
+ prodTenants,
85
+ } : {
86
+ devTenants : string [ ] ;
87
+ prodTenants : string [ ] ;
88
+ } ) {
89
+ if ( this . config . priority === "dev" ) {
90
+ return devTenants ;
91
+ } else {
92
+ return prodTenants ;
93
+ }
94
+ }
95
+
82
96
controlRolesAndPermissions ( {
83
97
comparisonResult,
84
98
rolesA,
Original file line number Diff line number Diff line change @@ -43,9 +43,14 @@ async function main() {
43
43
rolesB : rolesWithPermissionsProd ,
44
44
} ) ;
45
45
46
+ const targetTenants = service . controlTenants ( {
47
+ devTenants : currentDevTenants ,
48
+ prodTenants : currentProdTenants ,
49
+ } ) ;
50
+
46
51
await service . generateAuthConfig ( {
47
52
rolesWithPermissions : targetRolesWithPermissions ,
48
- tenants : currentProdTenants ,
53
+ tenants : targetTenants ,
49
54
} ) ;
50
55
}
51
56
You can’t perform that action at this time.
0 commit comments