mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
- fixes #2401
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { Logger, Module } from "@nestjs/common";
|
||||
import { Module } from "@nestjs/common";
|
||||
import { ConfigService } from "@nestjs/config";
|
||||
import {
|
||||
loggingMiddleware,
|
||||
PrismaModule,
|
||||
PrismaService,
|
||||
providePrismaClientExceptionFilter,
|
||||
} from "nestjs-prisma";
|
||||
import { PrismaModule, providePrismaClientExceptionFilter } from "nestjs-prisma";
|
||||
|
||||
import { Config } from "@/server/config/schema";
|
||||
|
||||
@@ -16,14 +11,6 @@ import { Config } from "@/server/config/schema";
|
||||
inject: [ConfigService],
|
||||
useFactory: (configService: ConfigService<Config>) => ({
|
||||
prismaOptions: { datasourceUrl: configService.get("DATABASE_URL") },
|
||||
middlewares: [
|
||||
loggingMiddleware({
|
||||
logLevel: "debug", // only in development
|
||||
logger: new Logger(PrismaService.name),
|
||||
logMessage: (query) =>
|
||||
`[Query] ${query.model}.${query.action} - ${query.executionTime}ms`,
|
||||
}),
|
||||
],
|
||||
}),
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user