Change analytics to 45 days instead of 90 to fix timeout

This commit is contained in:
James Grugett 2022-05-15 15:50:28 -04:00
parent 75a1dfd0e4
commit c85b806bc1

View File

@ -18,7 +18,7 @@ import { getDailyNewUsers } from 'web/lib/firebase/users'
export const getStaticProps = fromPropz(getStaticPropz)
export async function getStaticPropz() {
const numberOfDays = 90
const numberOfDays = 45
const today = dayjs(dayjs().format('YYYY-MM-DD'))
const startDate = today.subtract(numberOfDays, 'day')