mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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()
|
.utc()
|
||||||
.endOf("day");
|
.endOf("day");
|
||||||
|
|
||||||
|
const daysInQueryPeriod = endDate.diff(startDate, "days", false) + 1;
|
||||||
|
|
||||||
const data = [
|
const data = [
|
||||||
851,
|
851,
|
||||||
3805,
|
3805,
|
||||||
|
@ -130,7 +132,7 @@ const data = [
|
||||||
4048,
|
4048,
|
||||||
2523,
|
2523,
|
||||||
1062
|
1062
|
||||||
];
|
].slice(-daysInQueryPeriod);
|
||||||
|
|
||||||
const page_view_total_reqs = {
|
const page_view_total_reqs = {
|
||||||
type: "page_view_total_reqs",
|
type: "page_view_total_reqs",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue