diff --git a/src/actions/payoutMethods/schema.ts b/src/actions/payoutMethods/schema.ts index 461a934aa..0bb9d7c36 100644 --- a/src/actions/payoutMethods/schema.ts +++ b/src/actions/payoutMethods/schema.ts @@ -3,13 +3,13 @@ import { z } from 'zod'; export const payoutMethodSchema = z.object({ upiId: z .string() - .refine((value) => (/^[0-9A-Za-z._-]{2,256}@[A-Za-z]{2,64}$/).test(value), { + .refine((value) => /^[0-9A-Za-z._-]{2,256}@[A-Za-z]{2,64}$/.test(value), { message: 'Enter a valid UPI address', }) .optional(), solanaAddress: z .string() - .refine((value) => (/^[A-Za-z0-9]{44}$/).test(value), { + .refine((value) => /^[A-Za-z0-9]{44}$/.test(value), { message: 'Enter a valid Solana address', }) .optional(), @@ -18,13 +18,13 @@ export const payoutMethodSchema = z.object({ export const upiIdInsertSchema = z.object({ upiId: z .string() - .refine((value) => (/^[0-9A_Za-z._-]{2,256}@[A_Za-z]{2,64}$/).test(value), { + .refine((value) => /^[0-9A_Za-z._-]{2,256}@[A_Za-z]{2,64}$/.test(value), { message: 'Invalid UPI address', }), }); export const solanaAddressInsertSchema = z.object({ - solanaAddress: z.string().refine((value) => (/^[A-Za-z0-9]{44}$/).test(value), { + solanaAddress: z.string().refine((value) => /^[A-Za-z0-9]{44}$/.test(value), { message: 'Invalid Solana address', }), }); diff --git a/src/app/api/admin/services/subtitle/route.ts b/src/app/api/admin/services/subtitle/route.ts index 209c1a268..08391f64f 100644 --- a/src/app/api/admin/services/subtitle/route.ts +++ b/src/app/api/admin/services/subtitle/route.ts @@ -29,10 +29,10 @@ export async function GET(req: NextRequest) { include: { content: { include: { - courses: true - } + courses: true, + }, }, - } + }, }); if (!video) return NextResponse.json(