fix: remove parent relation

Looks unnecessary. Doesn't seems to get used.
This commit is contained in:
Methapon2001 2024-04-04 11:09:59 +07:00
parent a86b01bc3e
commit d3e535374c

View file

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