@hestia-earth/api 0.9.26-0 → 0.9.26-1

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.
@@ -95,18 +95,19 @@ exports.groupLogsByModel = function (data) {
95
95
  .map(parseMessage)
96
96
  .filter(function (v) { return !!(v === null || v === void 0 ? void 0 : v.term) && !!(v === null || v === void 0 ? void 0 : v.model); })
97
97
  .reduce(function (group, _a) {
98
- var term = _a.term, model = _a.model, should_run = _a.should_run, log = __rest(_a, ["term", "model", "should_run"]);
98
+ var term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, log = __rest(_a, ["term", "model", "key", "should_run"]);
99
+ var modelKey = key || model;
99
100
  group[term] = group[term] || {};
100
- group[term][model] = group[term][model] || { missingLookups: [] };
101
- group[term][model].missingLookups = __spreadArrays(group[term][model].missingLookups, [
101
+ group[term][modelKey] = group[term][modelKey] || { missingLookups: [] };
102
+ group[term][modelKey].missingLookups = __spreadArrays(group[term][modelKey].missingLookups, [
102
103
  addMissingLookup(log)
103
104
  ]).filter(Boolean);
104
105
  if (typeof should_run !== 'undefined') {
105
- group[term][model] = __assign(__assign(__assign({}, group[term][model]), log), { shouldRun: should_run === 'True' });
106
+ group[term][modelKey] = __assign(__assign(__assign({}, group[term][modelKey]), log), { shouldRun: should_run === 'True' });
106
107
  }
107
108
  if ('requirements' in log) {
108
109
  var requirements = log.requirements, logData = __rest(log, ["requirements"]);
109
- group[term][model].requirements = logData;
110
+ group[term][modelKey].requirements = logData;
110
111
  }
111
112
  return group;
112
113
  }, {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.9.26-0",
3
+ "version": "0.9.26-1",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",