auto format
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Global, Module } from '@nestjs/common';
|
||||
import { CenterStaffSchema } from './centerstaff.schema';
|
||||
import { CenterStaffSchema } from './centerstaff.schema';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user