This commit is contained in:
2026-03-05 15:28:55 +02:00
parent aad888ff2c
commit 1df8a3f452
13 changed files with 3059 additions and 10822 deletions

View File

@@ -20,22 +20,9 @@ export default defineEventHandler(async (event) => {
},
});
posthog.identifyImmediate({
distinctId: String(user!.id),
properties: {
name: user!.name,
country: user!.country,
},
});
await db
.delete(tables.users)
.where(eq(tables.users.id, get(body, "object_id")));
posthog.captureImmediate({
distinctId: get(body, "object_id"),
event: "user deleted",
});
sendNoContent(event);
});