@itutoring/itutoring_application_js_api 1.5.3 → 1.5.5

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.
@@ -15,6 +15,15 @@ class LectorDatabase
15
15
  static #ADD_LECTOR = "AddLector";
16
16
  static #RESET_PASSWORD = "ResetPassword";
17
17
  static #ADD_MODULE_ACCESS = "AddModuleAccess";
18
+ static #REMOVE_MODULE_ACCESS = "RemoveModuleAccess";
19
+
20
+ static async removeModuleAccess(lectorId, moduleId)
21
+ {
22
+ await APIController.Post(this.#MODULE, this.#REMOVE_MODULE_ACCESS, {
23
+ 'lectorId': lectorId,
24
+ 'module': moduleId,
25
+ });
26
+ }
18
27
 
19
28
  /**
20
29
  * desc: Get all lectors
@@ -29,7 +38,7 @@ class LectorDatabase
29
38
  'maxCount': maxCount,
30
39
  });
31
40
 
32
- return JSON.parse(lectors);
41
+ return lectors;
33
42
  }
34
43
 
35
44
  /**
@@ -43,7 +52,7 @@ class LectorDatabase
43
52
  'lectorId': lectorId,
44
53
  });
45
54
 
46
- return JSON.parse(lector);
55
+ return lector;
47
56
  }
48
57
 
49
58
 
@@ -58,7 +67,7 @@ class LectorDatabase
58
67
  "query": dssQuery
59
68
  });
60
69
 
61
- return JSON.parse(lector);
70
+ return lector;
62
71
  }
63
72
 
64
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.5.3",
3
+ "version": "1.5.5",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",