Skip to content

Commit

Permalink
fix: 🐛 show drops for canonical items
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca180 committed Feb 2, 2025
1 parent b3f7867 commit aab9f0e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pages/api/v1/items/[id_name]/drops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,16 @@ export const getItemDrops = async (
export const getItemParent = async (item_iid: number) => {
const drops = await prisma.openableItems.findMany({
where: {
item_iid: item_iid,
OR: [
{
item_iid: item_iid,
},
{
item: {
canonical_id: item_iid,
},
},
],
parent_item: {
canOpen: {
not: 'false',
Expand Down

0 comments on commit aab9f0e

Please sign in to comment.