Fix analytics
This commit is contained in:
parent
4396456ed1
commit
a275b3a9c2
|
@ -18,7 +18,7 @@ import { getDailyNewUsers } from 'web/lib/firebase/users'
|
||||||
|
|
||||||
export const getStaticProps = fromPropz(getStaticPropz)
|
export const getStaticProps = fromPropz(getStaticPropz)
|
||||||
export async function getStaticPropz() {
|
export async function getStaticPropz() {
|
||||||
const numberOfDays = 10
|
const numberOfDays = 45
|
||||||
const tomorrow = dayjs(dayjs().format('YYYY-MM-DD'))
|
const tomorrow = dayjs(dayjs().format('YYYY-MM-DD'))
|
||||||
.add(1, 'day')
|
.add(1, 'day')
|
||||||
// Convert from UTC midnight to PT midnight.
|
// Convert from UTC midnight to PT midnight.
|
||||||
|
@ -148,7 +148,7 @@ export async function getStaticPropz() {
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
startDate,
|
startDate: startDate.valueOf(),
|
||||||
dailyActiveUsers,
|
dailyActiveUsers,
|
||||||
weeklyActiveUsers,
|
weeklyActiveUsers,
|
||||||
monthlyActiveUsers,
|
monthlyActiveUsers,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user