fix: remove parent relation
Looks unnecessary. Doesn't seems to get used.
This commit is contained in:
parent
a86b01bc3e
commit
d3e535374c
1 changed files with 0 additions and 2 deletions
|
|
@ -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 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue