@itutoring/itutoring_application_js_api 1.5.0 → 1.5.1

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.
@@ -77,13 +77,17 @@ class LectorDatabase
77
77
  * desc: Add lector
78
78
  * @param {string} name
79
79
  * @param {string} email
80
+ *
81
+ * @returns {string} lectorId
80
82
  */
81
83
  static async addLector(name, email)
82
84
  {
83
- await APIController.Post(this.#MODULE, this.#ADD_LECTOR, {
85
+ var id = await APIController.Post(this.#MODULE, this.#ADD_LECTOR, {
84
86
  'name': name,
85
87
  'email': email,
86
88
  });
89
+
90
+ return id;
87
91
  }
88
92
 
89
93
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",