From a1466778e600a0563c479a87d0a7cb744d3ed5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20L=C3=B3pez?= Date: Tue, 26 Sep 2023 12:46:09 +0200 Subject: [PATCH] Fix job launcher nest configuration --- packages/apps/job-launcher/server/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/apps/job-launcher/server/src/main.ts b/packages/apps/job-launcher/server/src/main.ts index 8ca781e533..b3916c1f73 100644 --- a/packages/apps/job-launcher/server/src/main.ts +++ b/packages/apps/job-launcher/server/src/main.ts @@ -1,7 +1,6 @@ import session from 'express-session'; import { NestFactory } from '@nestjs/core'; import { ConfigService } from '@nestjs/config'; -import { NestExpressApplication } from '@nestjs/platform-express'; import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; import { json, urlencoded } from 'body-parser'; import { useContainer } from 'class-validator'; @@ -12,9 +11,10 @@ import { AppModule } from './app.module'; import { ConfigNames } from './common/config'; import { createWriteStream } from 'fs'; import { get } from 'http'; +import { INestApplication } from '@nestjs/common'; async function bootstrap() { - const app = await NestFactory.create(AppModule, { + const app = await NestFactory.create(AppModule, { cors: true, });