OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
add is_external to upsert profile
Carl-Gerhard Lindesvärd26a992dcc6d7
diff --git a/packages/db/src/services/profile.service.ts b/packages/db/src/services/profile.service.tsindex 1c4c0a115..541f46165 100644--- a/packages/db/src/services/profile.service.ts+++ b/packages/db/src/services/profile.service.ts@@ -174,6 +174,7 @@ export async function upsertProfile({avatar,properties,projectId,+ isExternal,}: IServiceUpsertProfile) {const [profile] = await chQuery<IClickhouseProfile>(`SELECT * FROM profiles WHERE id = ${escape(id)} AND project_id = ${escape(projectId)} ORDER BY created_at DESC LIMIT 1`@@ -198,6 +199,7 @@ export async function upsertProfile({}),project_id: projectId ?? profile?.project_id ?? '',created_at: new Date(),+ is_external: isExternal,},],});