@itutoring/itutoring_application_js_api 1.4.29 → 1.4.30

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.
@@ -45,21 +45,13 @@ class TeacherManager
45
45
 
46
46
  for (const [key, value] of Object.entries(teachersArray))
47
47
  {
48
- var teacher = new Teacher;
49
-
50
- teacher.Name = value['Name'];
51
- teacher.Email = value['Email'];
52
- teacher.ZoomMeeting = value['ZoomMeeting'];
53
- teacher.ID = value['ID'];
54
- teacher.TeachedLessons = value['TeachedLessons'];
55
- teacher.Admin = APIController.IntToBool(value['Admin']);
56
-
57
- var teacherProfile = new TeacherProfile();
58
- teacherProfile.Bio = value['Profile']['Bio'];
59
- teacherProfile.Name = value['Profile']['Name'];
60
- teacherProfile.PhotoPath = value['Profile']['PhotoPath'];
61
-
62
- teacher.TeacherProfile = teacherProfile;
48
+ var teacherArray = JSON.parse(value);
49
+ var teacher = new Teacher();
50
+ teacher.Email = teacherArray['email'];
51
+ teacher.Name = teacherArray['name'];
52
+ teacher.ZoomMeeting = teacherArray['zoomMeeting'];
53
+ teacher.ID = teacherArray['id'];
54
+ teacher.TeachedLessons = teacherArray['taughtLessons'];
63
55
 
64
56
  teachersClasses[teacher.ID] = teacher;
65
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.4.29",
3
+ "version": "1.4.30",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",