Skip to content

Commit

Permalink
TRS-12
Browse files Browse the repository at this point in the history
- Added logger when changing owner
  • Loading branch information
birkirkristmunds committed May 13, 2024
1 parent 5ab02bc commit f1008b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ export class VehicleService {
if (findVehicle) {
findVehicle.mileage = vehicle.mileage
if (vehicle.ownerNationalId !== findVehicle.ownerNationalId) {
this.logger.info(
`car-recycling: Changing owner of the vehicle: ${vehicle.vehicleId.slice(
-3,
)}`,
)
findVehicle.ownerNationalId = vehicle.ownerNationalId
}
await findVehicle.save()
Expand Down

0 comments on commit f1008b5

Please sign in to comment.