@itutoring/itutoring_application_js_api 1.6.6 → 1.6.7

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 CHANGED
@@ -110,7 +110,7 @@ class APIController
110
110
  * @param data "data must be as array - key, value pair. They'll be passed into the request"
111
111
  * @returns "Response from server"
112
112
  */
113
- static async Get(module, method, data, useCache = false)
113
+ static async Get(module, method, data, useCache = false, cacheSuffix = "")
114
114
  {
115
115
  if (useCache && APICache.IsCached(module + method))
116
116
  {
@@ -134,7 +134,7 @@ class APIController
134
134
  var response = APIController.ResolveResponse(request);
135
135
  if (useCache)
136
136
  {
137
- APICache.Cache(module + method, response);
137
+ APICache.Cache(module + method + cacheSuffix, response);
138
138
  }
139
139
 
140
140
  resolve(response);
@@ -156,7 +156,7 @@ class LectorDatabase
156
156
  'offset': offset,
157
157
  'max': maxCount,
158
158
  'onlyWithProfilePictures': onlyWithProfilePictures,
159
- }, true);
159
+ }, true, (onlyWithProfilePictures ? "onlyWithProfilePictures" : ""));
160
160
  }
161
161
  }
162
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",