diff --git a/src/controllers/branch/contact-controller.ts b/src/controllers/branch/contact-controller.ts index dde1d4f..65b4398 100644 --- a/src/controllers/branch/contact-controller.ts +++ b/src/controllers/branch/contact-controller.ts @@ -106,7 +106,6 @@ export class BranchContactController extends Controller { ); } const record = await prisma.branchContact.create({ - include: { branch: true }, data: { ...body, branchId, createdBy: req.user.name, updateBy: req.user.name }, }); @@ -134,7 +133,6 @@ export class BranchContactController extends Controller { @Path() contactId: string, ) { const record = await prisma.branchContact.update({ - include: { branch: true }, data: { ...body, updateBy: req.user.name }, where: { id: contactId, branchId }, });