Skip to content

Commit

Permalink
my page receipt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Nov 1, 2023
1 parent 192301f commit 05c571e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/features/need/need.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down Expand Up @@ -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,
})
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 05c571e

Please sign in to comment.