Fixed error when name could not be found
This commit is contained in:
parent
fc5ec6d0bd
commit
1de3d76a9f
@ -75,7 +75,7 @@ router.post('/check', async (req, res) => {
|
|||||||
} else if(autocod.status == 'rejected') {
|
} else if(autocod.status == 'rejected') {
|
||||||
vehicle = vin01.value;
|
vehicle = vin01.value;
|
||||||
Object.assign(vehicle.debugInfo, autocod.reason.debugInfo);
|
Object.assign(vehicle.debugInfo, autocod.reason.debugInfo);
|
||||||
if(!vehicle.brand.name.normalized) {
|
if(!vehicle.brand?.name?.normalized) {
|
||||||
throw autocod.reason;
|
throw autocod.reason;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user