diff --git a/packages/db/src/services/profile.service.ts b/packages/db/src/services/profile.service.ts index 1c4c0a11..541f4616 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( `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, }, ], });