auto format

This commit is contained in:
2024-10-15 15:50:20 +07:00
parent c539bbdac0
commit fcc2b96a3b
6 changed files with 764 additions and 682 deletions

View File

@@ -1,5 +1,5 @@
import { Global, Module } from '@nestjs/common';
import { CenterStaffSchema } from './centerstaff.schema';
import { CenterStaffSchema } from './centerstaff.schema';
@Global()
@Module({

View File

@@ -4,7 +4,6 @@ import { PrismaService } from '../Prisma/prisma.service';
export class ClerkService {
constructor(private readonly prisma: PrismaService) {}
webhook(body: any) {
// get the event type
const eventType = body.type;
// dispatch the event

View File

@@ -5,6 +5,7 @@ import { PrismaService } from '../Prisma/prisma.service';
export class PrismaContextMiddleware implements NestMiddleware {
constructor(private readonly prisma: PrismaService) {}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
use(req: any, res: any, next: () => void) {
req.prisma = this.prisma; // Attach Prisma client to request object
next();

File diff suppressed because one or more lines are too long