@itutoring/itutoring_application_js_api 1.22.0 → 1.22.2

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.
@@ -51,7 +51,7 @@ class Training
51
51
  var res = await APIController.Get(this.#MODULE, this.#GET_TRAINING_DETAILS, {
52
52
  'trainingId': trainingId
53
53
  });
54
- return res;
54
+ return JSON.parse(res);
55
55
  }
56
56
 
57
57
  static async startTraining(trainingId)
@@ -65,7 +65,7 @@ class Training
65
65
  static async getActiveTraining()
66
66
  {
67
67
  var res = await APIController.Get(this.#MODULE, this.#GET_ACTIVE_TRAINING);
68
- return res;
68
+ return JSON.parse(res);
69
69
  }
70
70
 
71
71
  static async getTrainingResult(trainingId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.22.0",
3
+ "version": "1.22.2",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",