Skip to content

Commit

Permalink
temp remove criteria for ts error...
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Feb 20, 2024
1 parent a2592c2 commit bf6100f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const attributesByCategory = async ({ input }: TRPCHandlerParams<TAttribu
const result = await prisma.attributesByCategory.findMany({
where: {
categoryName: Array.isArray(input?.categoryName) ? { in: input.categoryName } : input?.categoryName,
canAttachTo: input?.canAttachTo?.length ? { hasSome: input.canAttachTo } : undefined,
// canAttachTo: input?.canAttachTo?.length ? { hasSome: input.canAttachTo } : undefined,
},
orderBy: [{ categoryName: 'asc' }, { attributeName: 'asc' }],
})
Expand Down

1 comment on commit bf6100f

@vercel
Copy link

@vercel vercel bot commented on bf6100f Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.