Skip to content

Commit

Permalink
fix: interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
sanriodev committed Sep 10, 2024
1 parent 90dc295 commit ebc6576
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/modules/energy-entry/energy-entry.controller.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import {
Body,
ClassSerializerInterceptor,
Controller,
Get,
Inject,
Param,
Post,
Put,
UseInterceptors,
UsePipes,
ValidationPipe,
} from '@nestjs/common';
Expand All @@ -27,7 +25,6 @@ export class EnergyEntryController {
) {}

@Post('/')
@UseInterceptors(ClassSerializerInterceptor)
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
@ApiOperation({
summary: 'create enery entry',
Expand All @@ -38,7 +35,6 @@ export class EnergyEntryController {
}

@Put('/')
@UseInterceptors(ClassSerializerInterceptor)
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
@ApiOperation({
summary: 'update enery entry',
Expand All @@ -49,7 +45,6 @@ export class EnergyEntryController {
}

@Get('/')
@UseInterceptors(ClassSerializerInterceptor)
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
@ApiOperation({
summary: 'get all data',
Expand All @@ -68,7 +63,6 @@ export class EnergyEntryController {
required: true,
format: 'string',
})
@UseInterceptors(ClassSerializerInterceptor)
@UsePipes(new ValidationPipe({ transform: true, whitelist: true }))
@ApiOperation({
summary: 'get data by id',
Expand Down

0 comments on commit ebc6576

Please sign in to comment.