From 05c571ef5069accc5068a161ad6bcd8121992a60 Mon Sep 17 00:00:00 2001 From: Gbuntu Date: Wed, 1 Nov 2023 13:50:10 +0330 Subject: [PATCH] my page receipt fix --- src/features/need/need.service.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/features/need/need.service.ts b/src/features/need/need.service.ts index f3291b440..0e590dc98 100644 --- a/src/features/need/need.service.ts +++ b/src/features/need/need.service.ts @@ -350,9 +350,9 @@ export class NeedService { }) .andWhere('need.isConfirmed = :needConfirmed', { needConfirmed: false }) .andWhere('need.isDeleted = :needDeleted', { needDeleted: false }) - .andWhere('need.created_by_id IN (:...swIds)', { - swIds: socialWorker ? [socialWorker] : [...swIds], - }) + // .andWhere('need.created_by_id IN (:...swIds)', { + // swIds: socialWorker ? [socialWorker] : [...swIds], + // }) .andWhere('need.status = :statusNotPaid', { statusNotPaid: PaymentStatusEnum.NOT_PAID, }) @@ -420,9 +420,9 @@ export class NeedService { existenceStatus: [ChildExistence.AlivePresent], }) .andWhere('need.isDeleted = :needDeleted', { needDeleted: false }) - .andWhere('need.created_by_id IN (:...swIds)', { - swIds: socialWorker ? [socialWorker] : [...swIds], - }) + // .andWhere('need.created_by_id IN (:...swIds)', { + // swIds: socialWorker ? [socialWorker] : [...swIds], + // }) .andWhere('need.status = :statusNotPaid', { statusNotPaid: PaymentStatusEnum.NOT_PAID, }) @@ -506,9 +506,9 @@ export class NeedService { .andWhere('payment.id IS NOT NULL') .andWhere('payment.verified IS NOT NULL') .andWhere('payment.order_id IS NOT NULL') - .andWhere('need.created_by_id IN (:...swIds)', { - swIds: socialWorker ? [socialWorker] : [...swIds], - }) + // .andWhere('need.created_by_id IN (:...swIds)', { + // swIds: socialWorker ? [socialWorker] : [...swIds], + // }) .select([ 'child', 'ngo.id', @@ -616,9 +616,9 @@ export class NeedService { }); }), ) - .andWhere('need.created_by_id IN (:...swIds)', { - swIds: socialWorker ? [socialWorker] : [...swIds], - }) + // .andWhere('need.created_by_id IN (:...swIds)', { + // swIds: socialWorker ? [socialWorker] : [...swIds], + // }) .select([ 'child', @@ -737,9 +737,9 @@ export class NeedService { }); }), ) - .andWhere('need.created_by_id IN (:...swIds)', { - swIds: socialWorker ? [socialWorker] : [...swIds], - }) + // .andWhere('need.created_by_id IN (:...swIds)', { + // swIds: socialWorker ? [socialWorker] : [...swIds], + // }) .select([ 'child', 'ngo.id',