Skip to content

Commit

Permalink
Add Hosts DayMap --fix :sad:
Browse files Browse the repository at this point in the history
  • Loading branch information
a632079 committed Apr 7, 2018
1 parent b6b90f1 commit a7f8d07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ module.exports = async (ctx, next) => {
// fetch DayMap
const fetchDayMap = await Promise.all([
getAllDayMap(all.now),
getHostsDayMap(fetchData[4])
getHostsDayMap(limitHost, fetchData[4])
])
all.dayMap = fetchDayMap[0]
Object.assign(hosts, fetchDayMap[1])
ctx.body = {
name: pkg.name,
version: pkg.version,
Expand Down

0 comments on commit a7f8d07

Please sign in to comment.