Skip to content

Commit

Permalink
uncomment criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Feb 20, 2024
1 parent a9b41ee commit 8430e69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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

0 comments on commit 8430e69

Please sign in to comment.