bruce-models 1.3.8 → 1.3.9

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.
@@ -1564,7 +1564,9 @@ var Entity;
1564
1564
  try {
1565
1565
  const data = yield req;
1566
1566
  const item = data.Items.find(x => x.Bruce.ID == entityId);
1567
- res(item);
1567
+ res({
1568
+ entity: item
1569
+ });
1568
1570
  }
1569
1571
  catch (e) {
1570
1572
  // No showing error as we don't want to see it 2000 times.
@@ -1576,7 +1578,7 @@ var Entity;
1576
1578
  }
1577
1579
  }
1578
1580
  return {
1579
- entities: (yield Promise.all(reqs)).filter(x => !!x)
1581
+ entities: (yield Promise.all(reqs)).map(x => x === null || x === void 0 ? void 0 : x.entity).filter(x => !!x)
1580
1582
  };
1581
1583
  });
1582
1584
  }
@@ -1748,7 +1750,9 @@ var Entity;
1748
1750
  for (let i = 0; i < entities.length; i++) {
1749
1751
  const entity = entities[i];
1750
1752
  const id = entity.Bruce.ID;
1751
- api.Cache.Set(GetCacheKey(id), entity, Api.DEFAULT_CACHE_DURATION);
1753
+ api.Cache.Set(GetCacheKey(id), {
1754
+ entity: entity
1755
+ }, Api.DEFAULT_CACHE_DURATION);
1752
1756
  }
1753
1757
  return {
1754
1758
  entities: entities