Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/donations: Fix donation filter query #612

Merged
merged 7 commits into from
Mar 22, 2024
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 @@ -24,7 +24,7 @@
import { CreateSessionDto } from './dto/create-session.dto'
import { UpdatePaymentDto } from './dto/update-payment.dto'

import { DonationBaseDto, ListDonationsDto } from './dto/list-donations.dto'

Check warning on line 27 in apps/api/src/donations/donations.service.ts

View workflow job for this annotation

GitHub Actions / Run API tests

'DonationBaseDto' is defined but never used
import { donationWithPerson } from './queries/donation.validator'
import { CreateStripePaymentDto } from './dto/create-stripe-payment.dto'
import { ImportStatus } from '../bank-transactions-file/dto/bank-transactions-import-status.dto'
Expand Down Expand Up @@ -385,12 +385,12 @@
lte: to,
},
paymentId: paymentId,
OR: [
{ payment: { status: paymentStatus } },
{ payment: { provider: paymentProvider } },
{ payment: { billingEmail: { contains: search } } },
{ payment: { billingName: { contains: search } } },
],
payment: {
slavcho marked this conversation as resolved.
Show resolved Hide resolved
status: paymentStatus,
provider: paymentProvider,
billingName: { contains: search },
billingEmail: { contains: search },
},
targetVault: { campaign: { id: campaignId } },
})

Expand Down
Loading