fix: wrong relation included
This commit is contained in:
parent
7782772e50
commit
dbf32a987d
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ export class BranchController extends Controller {
|
|||
|
||||
const branch = await prisma.branch.findUnique({
|
||||
include: {
|
||||
user: { where: { id: req.user.sub } },
|
||||
user: { where: { userId: req.user.sub } },
|
||||
},
|
||||
where: { id: branchId },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue