@itutoring/itutoring_application_js_api 1.1.13 → 1.1.15

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.
@@ -7,7 +7,7 @@ class TeacherProfiles
7
7
 
8
8
  static #GET_PROFILES = "GetProfiles";
9
9
 
10
-
10
+
11
11
  /**
12
12
  * Retrive all public teacher profiles
13
13
  *
@@ -15,8 +15,8 @@ class TeacherProfiles
15
15
  */
16
16
  static async GetProfiles()
17
17
  {
18
- var profiles = await APIController.Get(this.#MODULE, this.#GET_PROFILES);
19
-
18
+ var profiles = await APIController.Get(this.#MODULE, this.#GET_PROFILES);
19
+
20
20
  var parsedProfiles;
21
21
  try
22
22
  {
@@ -26,7 +26,7 @@ class TeacherProfiles
26
26
  {
27
27
  return null;
28
28
  }
29
-
29
+
30
30
  var profilesArray = [];
31
31
 
32
32
  for (const [key, value] of Object.entries(parsedProfiles))
@@ -36,7 +36,7 @@ class TeacherProfiles
36
36
  profile.Name = value['Name'];
37
37
  profile.Bio = value['Bio'];
38
38
  profile.PhotoPath = value['PhotoPath'];
39
- profile.Subejcts = JSON.parse['Subjects'];
39
+ profile.Subjects = value['Subjects'] == null ? [] : value['Subjects'];
40
40
 
41
41
  profilesArray[key] = profile;
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",