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 }, }); },