Skip to content

Commit

Permalink
src/donations: Fix donation filter query
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Mar 15, 2024
1 parent 8b800c6 commit 36b12b5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/api/src/donations/donations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ export class DonationsService {
lte: to,
},
paymentId: paymentId,
OR: [
{ payment: { status: paymentStatus } },
{ payment: { provider: paymentProvider } },
{ payment: { billingEmail: { contains: search } } },
{ payment: { billingName: { contains: search } } },
],
payment: {
status: paymentStatus,
provider: paymentProvider,
billingName: { contains: search },
billingEmail: { contains: search },
},
targetVault: { campaign: { id: campaignId } },
})

Expand Down

0 comments on commit 36b12b5

Please sign in to comment.