bruce-models 0.0.7 → 0.0.8

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.
@@ -2296,7 +2296,7 @@
2296
2296
  });
2297
2297
  }); });
2298
2298
  _loop_1 = function (i) {
2299
- var req = new Promise(function (rej, res) { return __awaiter(_this, void 0, void 0, function () {
2299
+ var req = new Promise(function (res, rej) { return __awaiter(_this, void 0, void 0, function () {
2300
2300
  var sources, e_2;
2301
2301
  return __generator(this, function (_a) {
2302
2302
  switch (_a.label) {
@@ -2433,7 +2433,8 @@
2433
2433
  });
2434
2434
  }); });
2435
2435
  _loop_1 = function (i) {
2436
- var req = new Promise(function (rej, res) { return __awaiter(_this, void 0, void 0, function () {
2436
+ var id = reqIds[i];
2437
+ var req = new Promise(function (res, rej) { return __awaiter(_this, void 0, void 0, function () {
2437
2438
  var tags, tag, e_2;
2438
2439
  return __generator(this, function (_a) {
2439
2440
  switch (_a.label) {
@@ -2442,7 +2443,7 @@
2442
2443
  return [4 /*yield*/, prom_1];
2443
2444
  case 1:
2444
2445
  tags = _a.sent();
2445
- tag = tags.find(function (t) { return t.ID === reqIds[i]; });
2446
+ tag = tags.find(function (t) { return t.ID === id; });
2446
2447
  res(tag);
2447
2448
  return [3 /*break*/, 3];
2448
2449
  case 2:
@@ -2453,7 +2454,7 @@
2453
2454
  }
2454
2455
  });
2455
2456
  }); });
2456
- api.Cache.Set(GetCacheKey(reqIds[i]), req, exports.Api.DEFAULT_CACHE_DURATION);
2457
+ api.Cache.Set(GetCacheKey(id), req, exports.Api.DEFAULT_CACHE_DURATION);
2457
2458
  reqs.push(req);
2458
2459
  };
2459
2460
  for (i = 0; i < reqIds.length; i++) {