Skip to content

Commit

Permalink
* adjust getHistory Case
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed May 27, 2022
1 parent 9d66df7 commit 7747917
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ function getHistory(msg) {
options.integralUnit = 60;
}

history[options.id] = history[options.id] || {};
const debugLog = options.debugLog = !!(history[options.id] && history[options.id][adapter.namespace] && history[options.id][adapter.namespace].enableDebugLogs);

if (options.ignoreNull === 'true') options.ignoreNull = true; // include nulls and replace them with last value
Expand Down

0 comments on commit 7747917

Please sign in to comment.