From 1e8e7d95a9ad96f5e66d8ba66c7a57f2a040c8cc Mon Sep 17 00:00:00 2001 From: EjembiEmmanuel Date: Tue, 26 Nov 2024 14:31:45 +0100 Subject: [PATCH] refac: refactor code --- backend/src/app.service.ts | 4 ---- backend/src/manufacturer/manufacturer.controller.ts | 2 +- backend/tsconfig.json | 4 +--- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/backend/src/app.service.ts b/backend/src/app.service.ts index e664b2f..927d7cc 100644 --- a/backend/src/app.service.ts +++ b/backend/src/app.service.ts @@ -6,7 +6,3 @@ export class AppService { return 'Hello World!'; } } - -import { PrismaClient } from '@prisma/client'; - -const prisma = new PrismaClient(); diff --git a/backend/src/manufacturer/manufacturer.controller.ts b/backend/src/manufacturer/manufacturer.controller.ts index 546c5a6..0a0939a 100644 --- a/backend/src/manufacturer/manufacturer.controller.ts +++ b/backend/src/manufacturer/manufacturer.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Post, Body } from '@nestjs/common'; +import { Controller, Post, Body, Get } from '@nestjs/common'; import { ManufacturerService } from './manufacturer.service'; import { CreateManufacturerDto } from './dto/create-manufacturer.dto'; diff --git a/backend/tsconfig.json b/backend/tsconfig.json index 3bd419a..c47f902 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -15,8 +15,6 @@ "strictNullChecks": false, "noImplicitAny": false, "strictBindCallApply": false, - "forceConsistentCasingInFileNames": false, - "noFallthroughCasesInSwitch": false + "forceConsistentCasingInFileNames": false } } -