Skip to content

Commit

Permalink
fix: Include person's first and lastName in search
Browse files Browse the repository at this point in the history
  • Loading branch information
sashko9807 committed Mar 19, 2024
1 parent 2dad43c commit 52e9e50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/api/src/donations/donations.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,13 @@ export class DonationsService {
payment: {
status: paymentStatus,
provider: paymentProvider,
billingName: { contains: search },
billingEmail: { contains: search },
},
OR: [
{ payment: { billingEmail: { contains: search } } },
{ payment: { billingName: { contains: search } } },
{ person: { firstName: { contains: search } } },
{ person: { lastName: { contains: search } } },
],
targetVault: { campaign: { id: campaignId } },
})

Expand Down

0 comments on commit 52e9e50

Please sign in to comment.