bruce-models 6.6.3 → 6.6.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.
@@ -6848,18 +6848,25 @@
6848
6848
  const cacheKey = GetLodsFilterCacheKey(filter);
6849
6849
  const cache = api.GetCacheItem(cacheKey, reqParams);
6850
6850
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
6851
- return cache.data;
6851
+ return yield cache.data;
6852
6852
  }
6853
- const prom = api.POST("entity/getlods", filter, reqParams);
6853
+ const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
6854
+ try {
6855
+ const data = yield api.POST("entity/getlods", filter, reqParams);
6856
+ res({
6857
+ lods: data.Items || []
6858
+ });
6859
+ }
6860
+ catch (e) {
6861
+ rej(e);
6862
+ }
6863
+ }));
6854
6864
  api.SetCacheItem({
6855
6865
  key: cacheKey,
6856
6866
  value: prom,
6857
6867
  req: reqParams
6858
6868
  });
6859
- const data = yield prom;
6860
- return {
6861
- lods: data.Items
6862
- };
6869
+ return yield prom;
6863
6870
  });
6864
6871
  }
6865
6872
  EntityLod.GetLods = GetLods;
@@ -16117,7 +16124,7 @@
16117
16124
  })(exports.Tracking || (exports.Tracking = {}));
16118
16125
 
16119
16126
  // This is updated with the package.json version on build.
16120
- const VERSION = "6.6.3";
16127
+ const VERSION = "6.6.4";
16121
16128
 
16122
16129
  exports.VERSION = VERSION;
16123
16130
  exports.AbstractApi = AbstractApi;