Skip to content

Commit c347fb5

Browse files
#RI-6509 - Create a free Cloud db (#4317)
1 parent 1a2b12e commit c347fb5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

redisinsight/api/src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { migrateHomeFolder, removeOldFolders } from 'src/init-helper';
1111
import { LogFileProvider } from 'src/modules/profiler/providers/log-file.provider';
1212
import { WindowsAuthAdapter } from 'src/modules/auth/window-auth/adapters/window-auth.adapter';
1313
import { AppLogger } from 'src/common/logger/app-logger';
14+
import { CloudAuthModule } from 'src/modules/cloud/auth/cloud-auth.module';
15+
import { CloudAuthService } from 'src/modules/cloud/auth/cloud-auth.service';
1416
import { AppModule } from './app.module';
1517
import SWAGGER_CONFIG from '../config/swagger';
1618
import LOGGER_CONFIG from '../config/logger';
@@ -22,6 +24,7 @@ const serverConfig = get('server') as Config['server'];
2224
interface IApp {
2325
app: INestApplication;
2426
gracefulShutdown: Function;
27+
cloudAuthService: CloudAuthService;
2528
}
2629

2730
export default async function bootstrap(apiPort?: number): Promise<IApp> {
@@ -98,7 +101,9 @@ export default async function bootstrap(apiPort?: number): Promise<IApp> {
98101
process.on('SIGTERM', gracefulShutdown);
99102
process.on('SIGINT', gracefulShutdown);
100103

101-
return { app, gracefulShutdown };
104+
const cloudAuthService = app.select(CloudAuthModule).get(CloudAuthService);
105+
106+
return { app, gracefulShutdown, cloudAuthService };
102107
}
103108

104109
if (serverConfig.autoBootstrap) {

0 commit comments

Comments
 (0)