@itutoring/itutoring_application_js_api 1.1.23 → 1.1.25

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.
@@ -30,7 +30,10 @@ class CustomerEduPortal
30
30
  var eventsJson = JSON.parse(events)
31
31
  for (const [key, value] of Object.entries(eventsJson))
32
32
  {
33
- eventObjs.push(((new iEvent()).CreateFromJSON(JSON.parse(value))));
33
+ var ev = new iEvent();
34
+ console.log(JSON.parse(value));
35
+ ev.CreateFromJSON(JSON.parse(value))
36
+ eventObjs.push(ev);
34
37
  }
35
38
 
36
39
  return eventObjs;
package/objects/Event.js CHANGED
@@ -82,8 +82,6 @@ class iEvent
82
82
 
83
83
  CreateFromJSON(json)
84
84
  {
85
- json = JSON.parse(json);
86
-
87
85
  this.ID = json['ID'];
88
86
  this.PassCode = json['PassCode'];
89
87
  this.RoomID = json['RoomID'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",