make input strict

This commit is contained in:
Brandon Egger 2023-09-05 19:48:02 -05:00
parent cad4b78f47
commit ee7268e724

View File

@ -82,7 +82,7 @@ export const auditoryResourceRouter = createTRPCRouter({
}),
create: protectedProcedure
.input(AuditoryResourceSchema)
.input(AuditoryResourceSchema.strict())
.mutation(async ({ input, ctx }) => {
return await ctx.prisma.auditoryResource.create({
data: input,