-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade dependencies #324
Conversation
@@ -23,7 +23,7 @@ export const userRouter = t.router({ | |||
.input(z.object({ id: z.string().optional(), email: z.string().optional() }).optional()) | |||
.query(({ ctx, input }) => ctx.db.user.findMany({ where: input, select: defaultUserSelect })), | |||
find: t.procedure | |||
.input(z.object({ id: z.string().optional(), email: z.string().optional() })) | |||
.input(z.union([z.object({ id: z.string() }), z.object({ email: z.string() })])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice use of z.union
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@@ -23,7 +23,7 @@ export const userRouter = t.router({ | |||
.input(z.object({ id: z.string().optional(), email: z.string().optional() }).optional()) | |||
.query(({ ctx, input }) => ctx.db.user.findMany({ where: input, select: defaultUserSelect })), | |||
find: t.procedure | |||
.input(z.object({ id: z.string().optional(), email: z.string().optional() })) | |||
.input(z.union([z.object({ id: z.string() }), z.object({ email: z.string() })])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice use of z.union
Changes
Upgrades all dependencies. Manually tested the sign up and login to verify it still works.
Checklist