diff --git a/importGasStations.js b/importGasStations.js index 7eba567..73943d7 100644 --- a/importGasStations.js +++ b/importGasStations.js @@ -85,7 +85,16 @@ const createOrUpdateGasStation = (station, callback) => { .then(item => { if (item) { item - .update(station) + .update({ + name: item.name || null, + stationId: station.id, + location: station.location, + prices: station.prices, + services: station.services, + postCode: station.postCode, + address: station.address, + city: station.city + }) .then(() => { callback(null); })