🚸 (results) Add time filter to results table as…

This commit is contained in:
Baptiste Arnaud
2024-02-06 17:48:31 +01:00
parent 3e2533b934
commit 066fabce06
20 changed files with 376 additions and 67 deletions

View File

@@ -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)

View File

@@ -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: {},
}