Skip to content

Commit

Permalink
fix: changed PS to KW
Browse files Browse the repository at this point in the history
  • Loading branch information
DevRico003 authored Jun 18, 2024
1 parent b6840bd commit b3a4582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/api/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const mapData = (data) => {
firstRegistration: ad["vehicle"]["specifics"]["first-registration"]["@value"],
fuelTypes: [fuelType],
isElectric: fuelKey === "HYBRID",
power: ad["vehicle"]["specifics"]["power"]["@value"] + " PS",
power: ad["vehicle"]["specifics"]["power"]["@value"] + " KW",
gearbox: ad["vehicle"]["specifics"]["gearbox"]["local-description"]["$"],
numSeats: numSeats,
price: parseFloat(ad["price"]["consumer-price-amount"]["@value"]),
Expand Down Expand Up @@ -248,4 +248,4 @@ export default async function mobileHandler(req, res) {
console.error('Error during processing:', error);
res.status(500).json({ error: error.message || 'Unknown error occurred' });
}
}
}

0 comments on commit b3a4582

Please sign in to comment.