Fixed bug on import
This commit is contained in:
parent
3e38fc79b9
commit
7f3cc1a7e6
1 changed files with 10 additions and 1 deletions
|
@ -85,7 +85,16 @@ const createOrUpdateGasStation = (station, callback) => {
|
||||||
.then(item => {
|
.then(item => {
|
||||||
if (item) {
|
if (item) {
|
||||||
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(() => {
|
.then(() => {
|
||||||
callback(null);
|
callback(null);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue