@hestia-earth/api 0.9.30 → 0.9.31

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.
@@ -103,8 +103,9 @@ exports.groupLogsByModel = function (data) {
103
103
  .reduce(function (group, _a) {
104
104
  var term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, log = __rest(_a, ["term", "model", "key", "should_run"]);
105
105
  var modelKey = key || model;
106
+ var isKey = !!key;
106
107
  group[term] = group[term] || {};
107
- group[term][modelKey] = group[term][modelKey] || { isKey: !!key };
108
+ group[term][modelKey] = group[term][modelKey] || __assign({ isKey: isKey }, (isKey ? { model: model } : {}));
108
109
  if (typeof should_run !== 'undefined') {
109
110
  group[term][modelKey] = __assign(__assign(__assign({}, group[term][modelKey]), log), { shouldRun: should_run === 'True' });
110
111
  }
@@ -2,4 +2,5 @@ import { BaseModel } from '../../db/model.base';
2
2
  export declare class Reconciliation extends BaseModel {
3
3
  idExpected: string;
4
4
  idRecalculated: string;
5
+ name: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.9.30",
3
+ "version": "0.9.31",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",