Add vin field vehicle data

This commit is contained in:
Alf Sebastian Houge
2022-03-08 13:49:11 +01:00
parent 15f6539bf7
commit 8410674841
5 changed files with 12 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ func UpdateVehicle(vehicleID string, model models.UpdateVehicleRequest) error {
//return db.DB.Model(&toUpdate).Updates(db.Vehicle{
toUpdate.Nickname = model.Nickname
toUpdate.Registration = model.Registration
toUpdate.VIN = model.VIN
toUpdate.Model = model.Model
toUpdate.Make = model.Make
toUpdate.YearOfManufacture = model.YearOfManufacture