Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
code-factor authored and kms0219kms committed Jan 20, 2025
1 parent 1dcfb67 commit 7358227
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Module } from '@nestjs/common'
import { ConfigModule, ConfigService } from '@nestjs/config';
import { ConfigModule, ConfigService } from '@nestjs/config'
import { CacheModule } from '@nestjs/cache-manager'

import { createKeyv } from '@keyv/redis';
import { createKeyv } from '@keyv/redis'

import { AppController } from './app.controller'
import { AuthModule } from './auth/auth.module'
Expand Down
2 changes: 1 addition & 1 deletion src/common/filter/global-exception.filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class GlobalExceptionFilter implements ExceptionFilter {
private readonly logger = new Logger(GlobalExceptionFilter.name)

catch(exception: any, host: ArgumentsHost) {
this.logger.error(exception);
this.logger.error(exception)

const ctx = host.switchToHttp()
// const request = ctx.getRequest<Request>()
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NestFactory } from '@nestjs/core'
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'
import { NestjsRedoxModule } from 'nestjs-redox';
import { NestjsRedoxModule } from 'nestjs-redox'

import { AppModule } from './app.module'
import { version } from '../package.json'
Expand All @@ -25,7 +25,7 @@ async function bootstrap() {
await SwaggerModule.setup('docs', app, document)
await NestjsRedoxModule.setup('redoc', app, document, {
standalone: true,
});
})
}

if (process.env.GLOBAL_CORS === '1') {
Expand Down

0 comments on commit 7358227

Please sign in to comment.