Fixed bug on import

This commit is contained in:
dbroqua 2020-03-07 21:04:31 +01:00
parent 3e38fc79b9
commit 7f3cc1a7e6

View File

@ -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);
})