@itutoring/itutoring_application_js_api 1.27.2 → 1.27.4
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 +2 -1
- package/package.json +1 -1
package/apiController.js
CHANGED
|
@@ -81,6 +81,7 @@ class APIController
|
|
|
81
81
|
const source = urlParams.get("o");
|
|
82
82
|
if (this.UserSource == null)
|
|
83
83
|
{
|
|
84
|
+
// TODO: Dont save it here as cookie. It' maintaned by server
|
|
84
85
|
const date = new Date();
|
|
85
86
|
date.setTime(date.getTime() + (30 * 24 * 60 * 60 * 1000));
|
|
86
87
|
CookiesManager.SetCookie("_o", source, date.toUTCString());
|
|
@@ -286,7 +287,7 @@ class APIController
|
|
|
286
287
|
// Search for objects and stringify them.
|
|
287
288
|
Object.entries(data).forEach(([key, value]) =>
|
|
288
289
|
{
|
|
289
|
-
if (typeof value === "object" && !(value instanceof File) && !(value instanceof ApiFile))
|
|
290
|
+
if (typeof value === "object" && !(value instanceof File) && !(value instanceof ApiFile) && value !== null)
|
|
290
291
|
{
|
|
291
292
|
const files = this.ExtractApiFileFromObject(value);
|
|
292
293
|
Object.entries(files).forEach(([fKey, fValue]) =>
|