Skip to content

Commit

Permalink
fix: limit of coupon find in list of available route
Browse files Browse the repository at this point in the history
  • Loading branch information
HoreKk committed Feb 12, 2024
1 parent 9a22302 commit f5c011e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webapp/src/server/api/routers/offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export const offerRouter = createTRPCRouter({
const couponCountOfOffers = await ctx.payload.find({
collection: "coupons",
depth: 0,
limit: 10000,
where: {
offer: {
in: offers.docs.map((offer) => offer.id),
Expand Down

0 comments on commit f5c011e

Please sign in to comment.