vtb-appit 0.0.7 → 0.0.8

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 +2 -2
  2. package/package.json +1 -1
package/appit.js CHANGED
@@ -68,10 +68,10 @@ class Appit {
68
68
  for(let i = 0; i < labels.length; i++) {
69
69
  let id = this.findId('labels', labels[i]);
70
70
  if(!id) {
71
- let model = await this.createLabel(this.transformer.workspace_id, {label: labels[i], excursion_id: this.history.excursionId});
71
+ let model = await this.createLabel(this.transformer.workspace_id, {label: labels[i], excursions: [this.history.excursionId]});
72
72
  this.history.labels[labels[i]] = model.data.id;
73
73
  } else {
74
- await this.updateLabel(this.transformer.workspace_id, id, {label: labels[i], excursion_id: this.history.excursionId});
74
+ await this.updateLabel(this.transformer.workspace_id, id, {label: labels[i], excursions: [this.history.excursionId]});
75
75
  }
76
76
  }
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vtb-appit",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {