@itutoring/itutoring_application_js_api 1.12.6 → 1.12.8
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.
- package/apiController.js +1 -0
- package/modules/LessonInventory.js +4 -4
- package/package.json +1 -1
package/apiController.js
CHANGED
|
@@ -261,6 +261,7 @@ class APIController
|
|
|
261
261
|
const args = APIController.GetArgsFromArray(data);
|
|
262
262
|
|
|
263
263
|
const request = new XMLHttpRequest();
|
|
264
|
+
request.withCredentials = true;
|
|
264
265
|
request.open("POST", APIController.REST_URL() + module + "/" + method, true);
|
|
265
266
|
|
|
266
267
|
request.onreadystatechange = function ()
|
|
@@ -24,7 +24,7 @@ class LessonInventory
|
|
|
24
24
|
'offset': offset,
|
|
25
25
|
'filter': JSON.stringify(filter)
|
|
26
26
|
});
|
|
27
|
-
return
|
|
27
|
+
return subjects;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
static async getSubject(id)
|
|
@@ -32,7 +32,7 @@ class LessonInventory
|
|
|
32
32
|
var subject = await APIController.Get(this.#MODULE, this.#GET_SUBJECT, {
|
|
33
33
|
'id': id
|
|
34
34
|
});
|
|
35
|
-
return
|
|
35
|
+
return subject;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
static async getSubjectName(id)
|
|
@@ -40,7 +40,7 @@ class LessonInventory
|
|
|
40
40
|
var name = await APIController.Get(this.#MODULE, this.#GET_SUBJECT_NAME, {
|
|
41
41
|
'id': id
|
|
42
42
|
});
|
|
43
|
-
return
|
|
43
|
+
return name;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
static async search(query)
|
|
@@ -48,7 +48,7 @@ class LessonInventory
|
|
|
48
48
|
var subjects = await APIController.Get(this.#MODULE, this.#SEARCH, {
|
|
49
49
|
'query': query
|
|
50
50
|
});
|
|
51
|
-
return
|
|
51
|
+
return subjects;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|