make input strict
This commit is contained in:
parent
cad4b78f47
commit
ee7268e724
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user