Skip to content

Commit 73b4ca9

Browse files
committed
Add mclient injection to SwitchTenantService
1 parent 99d573a commit 73b4ca9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

accounts/src/main/java/org/restheart/accounts/SwitchTenantService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.restheart.plugins.accounts.MembershipProvider;
1010
import org.restheart.accounts.util.Errors;
1111
import org.restheart.accounts.util.JwtHelper;
12+
import org.restheart.accounts.util.DbHelper;
1213
import org.restheart.accounts.util.RequestOverrides;
1314
import org.restheart.exchange.JsonRequest;
1415
import org.restheart.exchange.JsonResponse;
@@ -60,6 +61,9 @@ public class SwitchTenantService implements JsonService {
6061
@Inject("accountsService")
6162
private AccountsService accountsService;
6263

64+
@Inject("mclient")
65+
private com.mongodb.client.MongoClient mclient;
66+
6367
private JwtHelper jwt;
6468

6569
@OnInit

0 commit comments

Comments
 (0)