ag-timemachine
Advanced tools
Comparing version 1.0.42 to 1.0.43
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.42", | ||
"version": "1.0.43", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -168,6 +168,6 @@ "use strict"; | ||
case 1: | ||
minutes = (_a.sent()).map(function (v) { return ({ minute: v._id.hour * 60 + v._id.minute, count: v.count }); }); | ||
minutes = (_a.sent()); | ||
console.log(start, end, minutes); | ||
result = { time: start, counts: new Array(24 * 60).fill(0) }; | ||
minutes.forEach(function (m) { return result.counts[m.minute] = m.count; }); | ||
minutes.forEach(function (m) { return result.counts[m._id.hour * 60 + m._id.minute] = m.count; }); | ||
return [2 /*return*/, result]; | ||
@@ -174,0 +174,0 @@ } |
66004