@jd-data-limited/easy-fm 3.0.1 → 3.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "dependencies": {
5
5
  "@types/btoa": "^1.2.3",
6
6
  "@types/events": "^3.0.0",
package/src/index.js CHANGED
@@ -1384,6 +1384,7 @@ export class RecordBase extends EventEmitter {
1384
1384
  return !!this.fields.find(i => i.edited);
1385
1385
  }
1386
1386
  processPortalData(portalData) {
1387
+ this.portals = [];
1387
1388
  for (let item of Object.keys(portalData)) {
1388
1389
  let _portal = new Portal(this, item);
1389
1390
  _portal.records = portalData[item].map(item => {
@@ -1503,7 +1504,6 @@ export class RecordBase extends EventEmitter {
1503
1504
  return;
1504
1505
  }
1505
1506
  // for (let item of Object.keys(data)) extraBody[item] = data[item]
1506
- console.log(extraBody.portalData);
1507
1507
  this.layout.database.apiRequest(this.endpoint, {
1508
1508
  port: 443,
1509
1509
  method: "PATCH",
package/src/index.ts CHANGED
@@ -1554,6 +1554,7 @@ export class RecordBase extends EventEmitter {
1554
1554
  }
1555
1555
 
1556
1556
  protected processPortalData(portalData): void {
1557
+ this.portals = []
1557
1558
  for (let item of Object.keys(portalData)) {
1558
1559
  let _portal = new Portal(this, item)
1559
1560
  _portal.records = portalData[item].map(item => {