From 418bd956eb513acb37bc03d72d14bcd488005845 Mon Sep 17 00:00:00 2001 From: Matthias Nannt Date: Tue, 11 Apr 2023 14:04:45 +0200 Subject: [PATCH] log users in posthog endpoint --- .../api/v1/environments/[environmentId]/posthog/import/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/pages/api/v1/environments/[environmentId]/posthog/import/index.ts b/apps/web/pages/api/v1/environments/[environmentId]/posthog/import/index.ts index 1cffd0e21a..3d43064781 100644 --- a/apps/web/pages/api/v1/environments/[environmentId]/posthog/import/index.ts +++ b/apps/web/pages/api/v1/environments/[environmentId]/posthog/import/index.ts @@ -24,6 +24,8 @@ export default async function handle(req: NextApiRequest, res: NextApiResponse) // lastSyncedAt is the last time the environment was synced (iso string) const { users }: { users: FormbricksUser[] } = req.body; + console.log(users); + for (const user of users) { // check if user with this userId as attribute already exists const existingUser = await prisma.person.findFirst({