From 169bae5e0a95e79e2f802623414437dc0fc1aefb Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Mon, 7 Apr 2025 08:07:14 +0100 Subject: [PATCH] Adding validation pipe to modules --- backend/src/album/album.module.ts | 2 +- backend/src/song/song.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/album/album.module.ts b/backend/src/album/album.module.ts index a45e795..2e60499 100644 --- a/backend/src/album/album.module.ts +++ b/backend/src/album/album.module.ts @@ -1,4 +1,4 @@ -import { Module } from '@nestjs/common'; +import { Module, ValidationPipe } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Album } from './album.entity'; import { AlbumController } from './album.controller'; diff --git a/backend/src/song/song.module.ts b/backend/src/song/song.module.ts index 4f03488..2f2bea5 100644 --- a/backend/src/song/song.module.ts +++ b/backend/src/song/song.module.ts @@ -1,4 +1,4 @@ -import { Module } from '@nestjs/common'; +import { Module, ValidationPipe } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { Song } from './song.entity'; import { AlbumModule } from '../album/album.module';