vtb-appit 0.0.12 → 0.0.15

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.
Files changed (2) hide show
  1. package/appit.js +5 -3
  2. 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, labels: labels, excursion_id: this.history.excursionId});
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, labels: labels, excursion_id: this.history.excursionId});
107
+ await this.updatePlace(id, {...formattedPlace, excursion_id: this.history.excursionId});
109
108
  }
110
109
  }
111
110
  }
@@ -175,6 +174,7 @@ class Appit {
175
174
  if(accommodation.images && accommodation.images.length) {
176
175
  accommodation.images = await this.mediaToBase64(accommodation.images);
177
176
  }
177
+ console.log('accommodation', accommodation);
178
178
 
179
179
  let id = this.findId('accommodations', accommodations[i].object_id);
180
180
  if(!id) {
@@ -238,6 +238,8 @@ class Appit {
238
238
  });
239
239
  };
240
240
 
241
+ console.log(result);
242
+
241
243
  return result;
242
244
  }
243
245
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtb-appit",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {