mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: dashboard test depended on the last month has 31 days
This commit is contained in:
parent
d3c1040e55
commit
4b517d460d
@ -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…
Reference in New Issue
Block a user