From e98cd605d011c1608bf063c2ab62bb59ac5dbeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Tue, 12 Nov 2024 16:05:20 +0100 Subject: [PATCH] fix: getList order do not consider offer availability --- webapp/src/server/api/routers/order.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/webapp/src/server/api/routers/order.ts b/webapp/src/server/api/routers/order.ts index 39d6d362..48c6957c 100644 --- a/webapp/src/server/api/routers/order.ts +++ b/webapp/src/server/api/routers/order.ts @@ -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 }], }, });