bruce-models 7.1.101 → 7.1.102

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.
@@ -5582,9 +5582,21 @@
5582
5582
  body["Scenario"] = scenario;
5583
5583
  }
5584
5584
  const res = yield api.POST("v3/entities/historic", body, exports.Api.PrepReqParams(req));
5585
- const entityIds = records.map(r => r["Entity.ID"]).filter((v, i, a) => v && a.indexOf(v) === i);
5585
+ const seenIds = new Set();
5586
+ const entityIds = records.map(r => r["Entity.ID"]).filter(v => {
5587
+ if (!v || seenIds.has(v))
5588
+ return false;
5589
+ seenIds.add(v);
5590
+ return true;
5591
+ });
5586
5592
  ClearCacheByEntityIds(api, entityIds);
5587
- for (const attrKey of records.map(r => r.AttrKey).filter((v, i, a) => v && a.indexOf(v) === i)) {
5593
+ const seenKeys = new Set();
5594
+ for (const attrKey of records.map(r => r.AttrKey).filter(v => {
5595
+ if (!v || seenKeys.has(v))
5596
+ return false;
5597
+ seenKeys.add(v);
5598
+ return true;
5599
+ })) {
5588
5600
  api.Cache.RemoveByContains(exports.Entity.GetHistoricContainsKey(attrKey));
5589
5601
  }
5590
5602
  return {
@@ -23715,7 +23727,7 @@
23715
23727
  }
23716
23728
 
23717
23729
  // This is updated with the package.json version on build.
23718
- const VERSION = "7.1.101";
23730
+ const VERSION = "7.1.102";
23719
23731
 
23720
23732
  exports.VERSION = VERSION;
23721
23733
  exports.AbstractApi = AbstractApi;