fix: wrong field used
This commit is contained in:
parent
cb0ac4f0be
commit
d15273de1b
3 changed files with 3 additions and 3 deletions
|
|
@ -244,7 +244,7 @@ export class ServiceController extends Controller {
|
|||
where: { id: body.productTypeId },
|
||||
}),
|
||||
prisma.branch.findFirst({
|
||||
include: { user: { where: { id: req.user.sub } } },
|
||||
include: { user: { where: { userId: req.user.sub } } },
|
||||
where: { id: body.registeredBranchId },
|
||||
}),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue