@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.
- package/modules/Training.js +2 -2
- package/package.json +1 -1
package/modules/Training.js
CHANGED
|
@@ -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)
|