From 578994b8562afa7e7f71f7a77c18e02a321806c6 Mon Sep 17 00:00:00 2001 From: yousef-alkhrissat Date: Wed, 31 Jul 2024 01:44:51 +0300 Subject: [PATCH] changed the name of the main module from AuthModule to AppModule --- .prettierrc | 3 ++- src/app.module.ts | 2 +- src/main.ts | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.prettierrc b/.prettierrc index dcb7279..9d36f26 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ { "singleQuote": true, - "trailingComma": "all" + "trailingComma": "all", + "endOfLine": "auto" } \ No newline at end of file diff --git a/src/app.module.ts b/src/app.module.ts index 19cabd3..7439365 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -52,4 +52,4 @@ import { LoggingInterceptor } from './interceptors/logging.interceptor'; }, ], }) -export class AuthModule {} +export class AppModule {} diff --git a/src/main.ts b/src/main.ts index 0253ad0..e33c397 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import { NestFactory } from '@nestjs/core'; -import { AuthModule } from './app.module'; +import { AppModule } from './app.module'; import rateLimit from 'express-rate-limit'; import helmet from 'helmet'; import { setupSwaggerAuthentication } from '../libs/common/src/util/user-auth.swagger.utils'; @@ -7,7 +7,7 @@ import { ValidationPipe } from '@nestjs/common'; import { SeederService } from '@app/common/seed/services/seeder.service'; async function bootstrap() { - const app = await NestFactory.create(AuthModule); + const app = await NestFactory.create(AppModule); app.enableCors();