We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a02b07 commit e59d678Copy full SHA for e59d678
1 file changed
src/backend/src/utils/car.utils.ts
@@ -13,7 +13,7 @@ export const getCurrentCar = async (req: Request, _res: Response, next: NextFunc
13
const car = await prisma.car.findUnique({
14
where: {
15
carId,
16
- wbsElement: { organizationId: req.organization.organizationId }
+ wbsElement: { organizationId: req.organization?.organizationId }
17
},
18
include: { wbsElement: true }
19
});
0 commit comments