Skip to content

Commit

Permalink
fix: getList order do not consider offer availability
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Nov 12, 2024
1 parent c6062c9 commit e98cd60
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions webapp/src/server/api/routers/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,7 @@ export const orderRouter = createTRPCRouter({
collection: "orders",
depth: 3,
where: {
and: [
{ user: { equals: ctx.session.id } },
{ ...statusQuery },
{
...payloadWhereOfferIsValid("offer"),
},
],
and: [{ user: { equals: ctx.session.id } }, { ...statusQuery }],
},
});

Expand Down

0 comments on commit e98cd60

Please sign in to comment.