From ebc65760293b4e51743a261eebeff4bdc80f423f Mon Sep 17 00:00:00 2001 From: Matteo Juen Date: Tue, 10 Sep 2024 21:04:18 +0200 Subject: [PATCH] fix: interceptor --- src/modules/energy-entry/energy-entry.controller.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/energy-entry/energy-entry.controller.ts b/src/modules/energy-entry/energy-entry.controller.ts index a648ed4..715ecc0 100644 --- a/src/modules/energy-entry/energy-entry.controller.ts +++ b/src/modules/energy-entry/energy-entry.controller.ts @@ -1,13 +1,11 @@ import { Body, - ClassSerializerInterceptor, Controller, Get, Inject, Param, Post, Put, - UseInterceptors, UsePipes, ValidationPipe, } from '@nestjs/common'; @@ -27,7 +25,6 @@ export class EnergyEntryController { ) {} @Post('/') - @UseInterceptors(ClassSerializerInterceptor) @UsePipes(new ValidationPipe({ transform: true, whitelist: true })) @ApiOperation({ summary: 'create enery entry', @@ -38,7 +35,6 @@ export class EnergyEntryController { } @Put('/') - @UseInterceptors(ClassSerializerInterceptor) @UsePipes(new ValidationPipe({ transform: true, whitelist: true })) @ApiOperation({ summary: 'update enery entry', @@ -49,7 +45,6 @@ export class EnergyEntryController { } @Get('/') - @UseInterceptors(ClassSerializerInterceptor) @UsePipes(new ValidationPipe({ transform: true, whitelist: true })) @ApiOperation({ summary: 'get all data', @@ -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',