From 7b2698e5814b3b175f82455f6b905e606be97797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20V=C4=83n=20Nguy=C3=AAn?= Date: Sat, 23 Sep 2023 23:15:46 +0700 Subject: [PATCH] feat: update --- prisma/seed.ts | 21 +-------------------- public/index.html | 3 --- src/app.module.ts | 11 ----------- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/prisma/seed.ts b/prisma/seed.ts index 37de969..db0c9c3 100644 --- a/prisma/seed.ts +++ b/prisma/seed.ts @@ -1,26 +1,7 @@ import { PrismaClient } from '@prisma/client'; -const prisma = new PrismaClient({ - log: [ - { - emit: 'event', - level: 'query', - }, - { - emit: 'stdout', - level: 'error', - }, - { - emit: 'stdout', - level: 'info', - }, - { - emit: 'stdout', - level: 'warn', - }, - ], -}); +const prisma = new PrismaClient(); async function seedTable(table: string) { try { diff --git a/public/index.html b/public/index.html index c198b3f..e69de29 100644 --- a/public/index.html +++ b/public/index.html @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/app.module.ts b/src/app.module.ts index 5bc9879..48ed231 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -19,17 +19,6 @@ import { PrismaModule } from './shared/prisma'; ScheduleModule.forRoot(), PrismaModule, GraphQLModule, - BullModule.forRoot({ - redis: { - host: process.env.REDIS_HOST || 'localhost', - port: parseInt(process.env.REDIS_PORT) || 6379, - username: process.env.REDIS_USERNAME || '', - password: process.env.REDIS_PASSWORD || '', - }, - }), - ServeStaticModule.forRoot({ - rootPath: join(__dirname, '..', 'public'), - }), AuthModule, UsersModule, RoleModule,