@itutoring/itutoring_application_js_api 1.4.31 → 1.4.32
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.
|
@@ -39,11 +39,9 @@ class TeacherManager
|
|
|
39
39
|
{
|
|
40
40
|
var teachers = await APIController.Get(this.#MODULE, this.#GET_ALL_TEACHERS);
|
|
41
41
|
|
|
42
|
-
var teachersArray = JSON.parse(teachers);
|
|
43
|
-
|
|
44
42
|
var teachersClasses = [];
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
teachers.forEach(value =>
|
|
47
45
|
{
|
|
48
46
|
var teacherArray = JSON.parse(value);
|
|
49
47
|
var teacher = new Teacher();
|
|
@@ -54,7 +52,7 @@ class TeacherManager
|
|
|
54
52
|
teacher.TeachedLessons = teacherArray['taughtLessons'];
|
|
55
53
|
|
|
56
54
|
teachersClasses[teacher.ID] = teacher;
|
|
57
|
-
}
|
|
55
|
+
});
|
|
58
56
|
|
|
59
57
|
return teachersClasses;
|
|
60
58
|
}
|