log users in posthog endpoint

This commit is contained in:
Matthias Nannt
2023-04-11 14:04:45 +02:00
parent c510da3879
commit 418bd956eb

View File

@@ -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({