update pagination
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import {
|
||||
ConsoleLogger,
|
||||
INestApplication,
|
||||
Injectable,
|
||||
Logger,
|
||||
OnModuleInit,
|
||||
} from '@nestjs/common';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
|
||||
@Injectable()
|
||||
export class PrismaService extends PrismaClient implements OnModuleInit {
|
||||
private readonly logger = new ConsoleLogger(PrismaService.name);
|
||||
|
||||
private readonly logger = new Logger(PrismaService.name);
|
||||
constructor() {
|
||||
super({
|
||||
log: [
|
||||
@@ -22,7 +21,7 @@ export class PrismaService extends PrismaClient implements OnModuleInit {
|
||||
level: 'error',
|
||||
},
|
||||
{
|
||||
emit: 'event',
|
||||
emit: 'stdout',
|
||||
level: 'info',
|
||||
},
|
||||
{
|
||||
@@ -30,6 +29,7 @@ export class PrismaService extends PrismaClient implements OnModuleInit {
|
||||
level: 'warn',
|
||||
},
|
||||
],
|
||||
errorFormat: 'pretty',
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user