From 83bf72e0a3cd06336a556f41d59e571b258ecb7d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:04:44 +0700 Subject: [PATCH] feat: include more relation --- src/controllers/08-credit-note-controller.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controllers/08-credit-note-controller.ts b/src/controllers/08-credit-note-controller.ts index 420a9ce..ddda39b 100644 --- a/src/controllers/08-credit-note-controller.ts +++ b/src/controllers/08-credit-note-controller.ts @@ -161,7 +161,11 @@ export class CreditNoteController extends Controller { prisma.creditNote.findMany({ where, include: { - quotation: true, + quotation: { + include: { + registeredBranch: true, + }, + }, requestWork: { include: { request: true }, },