mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: dashboard test depended on the last month has 31 days
This commit is contained in:
parent
d3c1040e55
commit
4b517d460d
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue