Commit bb0b78e35453aa2f936f01fe4b2cf30c15f55b53
fix reduce
Dominic Tarr committed on 9/24/2018, 8:28:00 AMParent: 99f5ab74ade99cac40ddc23f4f15f26d7c99fd4b
Files changed
db.js | changed |
db.js | |||
---|---|---|---|
@@ -114,9 +114,9 @@ | |||
114 | 114 … | cb(null, summary(value)) | |
115 | 115 … | }) | |
116 | 116 … | }), | |
117 | 117 … | pull.filter(), | |
118 | - pull.reduce(reduce, function (err, data) { | ||
118 … | + pull.reduce(reduce, {}, function (err, data) { | ||
119 | 119 … | if(!err) summary_data = data | |
120 | 120 … | while(waiting.length) | |
121 | 121 … | waiting.shift()(err, data) | |
122 | 122 … | }) |
Built with git-ssb-web