mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-07 14:20:31 -06:00
log users in posthog endpoint
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user