File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -385,11 +385,15 @@ export class DonationsService {
385
385
lte : to ,
386
386
} ,
387
387
paymentId : paymentId ,
388
+ payment : {
389
+ status : paymentStatus ,
390
+ provider : paymentProvider ,
391
+ } ,
388
392
OR : [
389
- { payment : { status : paymentStatus } } ,
390
- { payment : { provider : paymentProvider } } ,
391
393
{ payment : { billingEmail : { contains : search } } } ,
392
394
{ payment : { billingName : { contains : search } } } ,
395
+ { person : { firstName : { contains : search } } } ,
396
+ { person : { lastName : { contains : search } } } ,
393
397
] ,
394
398
targetVault : { campaign : { id : campaignId } } ,
395
399
} )
@@ -431,7 +435,7 @@ export class DonationsService {
431
435
pageSize ?: number ,
432
436
) : Promise < ListDonationsDto < PaymentWithDonationCount > > {
433
437
const whereClause = Prisma . validator < Prisma . PaymentWhereInput > ( ) ( {
434
- // id: paymentId,
438
+ id : paymentId ,
435
439
amount : {
436
440
gte : minAmount ,
437
441
lte : maxAmount ,
You can’t perform that action at this time.
0 commit comments