From bea08e5d126439b87ad4471c34347dec6dcef64b Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:35:48 +0700 Subject: [PATCH] feat: include more relation --- src/controllers/08-credit-note-controller.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/controllers/08-credit-note-controller.ts b/src/controllers/08-credit-note-controller.ts index 03ec023..58ebafe 100644 --- a/src/controllers/08-credit-note-controller.ts +++ b/src/controllers/08-credit-note-controller.ts @@ -223,7 +223,20 @@ export class CreditNoteController extends Controller { }, }, requestWork: { - include: { request: true, productService: true }, + include: { + request: true, + productService: { + include: { + service: true, + work: { + include: { productOnWork: true }, + }, + product: { + include: { document: true }, + }, + }, + }, + }, }, }, });