Fix for using registration history
This commit is contained in:
parent
e99b894b54
commit
9d63fe5d80
@ -38,7 +38,7 @@ router.post('/check', async (req, res) => {
|
||||
vehicle.addedBy = email;
|
||||
if(vin01?.status == 'fulfilled') {
|
||||
vehicle.vin1 = vin01.value.vin1;
|
||||
if(vin01.value?.brand?.name?.original == vehicle?.brand?.name?.original) {
|
||||
if(vin01.value?.brand?.name?.original?.trim() == vehicle?.brand?.name?.original) {
|
||||
vehicle.vin2 = vin01.value.vin2;
|
||||
vehicle.color = vin01.value.color;
|
||||
vehicle.ownershipPeriods = vin01.value.ownershipPeriods;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user