FIX: dashboard test depended on the last month has 31 days

This commit is contained in:
Kyle Zhao 2018-10-01 12:27:22 +08:00
parent d3c1040e55
commit 4b517d460d

View File

@ -97,6 +97,8 @@ const endDate = moment()
.utc()
.endOf("day");
const daysInQueryPeriod = endDate.diff(startDate, "days", false) + 1;
const data = [
851,
3805,
@ -130,7 +132,7 @@ const data = [
4048,
2523,
1062
];
].slice(-daysInQueryPeriod);
const page_view_total_reqs = {
type: "page_view_total_reqs",