updated bcz of payment

This commit is contained in:
2025-08-11 01:38:13 +05:30
parent 8640ba7458
commit 092201971b
2 changed files with 27 additions and 37 deletions

View File

@@ -21,8 +21,16 @@ export const updateClaimSchema = (
updatedAt: true,
})
.partial();
export type UpdateClaim = z.infer<typeof updateClaimSchema>;
// Extend the schema to inject `userId` manually (since it's not passed by the client)
export const ExtendedClaimSchema = (
ClaimUncheckedCreateInputObjectSchema as unknown as z.ZodObject<any>
).extend({
userId: z.number(),
});
export type Claim = z.infer<typeof ClaimUncheckedCreateInputObjectSchema>;
export type ClaimStatus = z.infer<typeof ClaimStatusSchema>;