🚸 (results) Add time filter to results table as…
This commit is contained in:
@@ -5,6 +5,7 @@ import { canReadTypebots } from '@/helpers/databaseRules'
|
||||
import { getAuthenticatedUser } from '@/features/auth/helpers/getAuthenticatedUser'
|
||||
import { methodNotAllowed, notAuthenticated } from '@typebot.io/lib/api'
|
||||
|
||||
// TODO: Delete, as it has been migrated to tRPC
|
||||
const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
const user = await getAuthenticatedUser(req, res)
|
||||
if (!user) return notAuthenticated(res)
|
||||
|
||||
@@ -8,7 +8,7 @@ const AnalyticsPage = ResultsPage
|
||||
export const getServerSideProps = async (
|
||||
context: GetServerSidePropsContext
|
||||
) => {
|
||||
if (!env.NEXT_PUBLIC_POSTHOG_KEY)
|
||||
if (!env.NEXT_PUBLIC_POSTHOG_KEY || env.NEXT_PUBLIC_E2E_TEST)
|
||||
return {
|
||||
props: {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user