fix: wrong variable used
This commit is contained in:
parent
de5bb96422
commit
16ffc551b4
1 changed files with 2 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ export class CustomerBranchController extends Controller {
|
|||
},
|
||||
}),
|
||||
prisma.user.findFirst({
|
||||
where: { id: body.customerId || undefined },
|
||||
where: { id: body.agentUserId || undefined },
|
||||
include: {
|
||||
branch: {
|
||||
include: { branch: { include: branchRelationPermInclude(req.user) } },
|
||||
|
|
@ -469,7 +469,7 @@ export class CustomerBranchController extends Controller {
|
|||
},
|
||||
}),
|
||||
prisma.user.findFirst({
|
||||
where: { id: body.customerId || undefined },
|
||||
where: { id: body.agentUserId || undefined },
|
||||
include: {
|
||||
branch: {
|
||||
include: { branch: { include: branchRelationPermInclude(req.user) } },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue