feat: include more relation
This commit is contained in:
parent
09313cf2ba
commit
83bf72e0a3
1 changed files with 5 additions and 1 deletions
|
|
@ -161,7 +161,11 @@ export class CreditNoteController extends Controller {
|
||||||
prisma.creditNote.findMany({
|
prisma.creditNote.findMany({
|
||||||
where,
|
where,
|
||||||
include: {
|
include: {
|
||||||
quotation: true,
|
quotation: {
|
||||||
|
include: {
|
||||||
|
registeredBranch: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
requestWork: {
|
requestWork: {
|
||||||
include: { request: true },
|
include: { request: true },
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue