From 438d670e021263181e36dc9f57e88819b0e351a0 Mon Sep 17 00:00:00 2001 From: Potenz Date: Wed, 17 Sep 2025 01:59:00 +0530 Subject: [PATCH] fix(paymentbypatientid) - fixed allows simply via patient id, instead claim-patientid --- apps/Backend/src/storage/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/Backend/src/storage/index.ts b/apps/Backend/src/storage/index.ts index d71573f..1bb7b59 100644 --- a/apps/Backend/src/storage/index.ts +++ b/apps/Backend/src/storage/index.ts @@ -828,7 +828,7 @@ export const storage: IStorage = { offset: number ): Promise { const payments = await db.payment.findMany({ - where: { claim: { patientId } }, + where: { patientId }, orderBy: { createdAt: "desc" }, skip: offset, take: limit, @@ -859,7 +859,7 @@ export const storage: IStorage = { async getTotalPaymentCountByPatient(patientId: number): Promise { return db.payment.count({ - where: { claim: { patientId } }, + where: { patientId }, }); },