mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00: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()
|
.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…
x
Reference in New Issue
Block a user