vtb-appit 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/appit.js +3 -4
- package/package.json +1 -1
package/appit.js
CHANGED
|
@@ -98,14 +98,13 @@ class Appit {
|
|
|
98
98
|
const formattedPlaces = await this.formatPlaces(places);
|
|
99
99
|
for(let i = 0; i < formattedPlaces.length; i++) {
|
|
100
100
|
let formattedPlace = this.clean(JSON.parse(JSON.stringify(formattedPlaces[i])));
|
|
101
|
-
let labels = this.getLabels(formattedPlaces[i]);
|
|
102
101
|
|
|
103
102
|
let id = this.findId('places', formattedPlaces[i].object_id);
|
|
104
103
|
if(!id) {
|
|
105
|
-
let model = await this.createPlace({...formattedPlace,
|
|
104
|
+
let model = await this.createPlace({...formattedPlace, excursion_id: this.history.excursionId});
|
|
106
105
|
this.history.places[formattedPlaces[i].object_id] = model.data.id;
|
|
107
106
|
} else {
|
|
108
|
-
await this.updatePlace(id, {...formattedPlace,
|
|
107
|
+
await this.updatePlace(id, {...formattedPlace, excursion_id: this.history.excursionId});
|
|
109
108
|
}
|
|
110
109
|
}
|
|
111
110
|
}
|
|
@@ -224,7 +223,7 @@ class Appit {
|
|
|
224
223
|
|
|
225
224
|
if(places[i].media.length)
|
|
226
225
|
images = await this.getImages(places[i].media, 'original/lg');
|
|
227
|
-
|
|
226
|
+
|
|
228
227
|
result.push({
|
|
229
228
|
title : places[i].title,
|
|
230
229
|
content : places[i].additionalText,
|