@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:
|
|
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
|
}
|