Skip to content

Commit

Permalink
feat(api): [Transaction] add missing categoryId in transaction valida…
Browse files Browse the repository at this point in the history
…tion schema (#96)
  • Loading branch information
bkdev98 committed Jul 11, 2024
1 parent 04d94e5 commit b85f272
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/validation/src/transaction.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const zCreateTransaction = z.object({
note: z.string().optional(),
budgetId: z.string().optional(),
walletAccountId: z.string(),
categoryId: z.string().optional(),
})
export type CreateTransaction = z.infer<typeof zCreateTransaction>

Expand All @@ -17,6 +18,7 @@ export const zUpdateTransaction = z.object({
note: z.string().optional(),
budgetId: z.string().optional(),
walletAccountId: z.string().optional(),
categoryId: z.string().optional(),
})
export type UpdateTransaction = z.infer<typeof zUpdateTransaction>

Expand Down

0 comments on commit b85f272

Please sign in to comment.