From 7f3cc1a7e6ea1d1b6a5c4afe2b34c7225da02142 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sat, 7 Mar 2020 21:04:31 +0100 Subject: [PATCH] Fixed bug on import --- importGasStations.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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); })