Skip to content

Commit

Permalink
feat(api): allow passing id when creating transaction (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
duongdev committed Jul 26, 2024
1 parent 079f176 commit 000e33a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/validation/src/transaction.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { z } from 'zod'
import { CategorySchema, TransactionSchema } from './prisma'

export const zCreateTransaction = z.object({
id: z.string().optional(),
date: z.date({ coerce: true }),
amount: z.number(),
currency: z.string(),
Expand Down

0 comments on commit 000e33a

Please sign in to comment.