improve funnels

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-04-22 21:07:17 +02:00
parent 88be927ecd
commit 5b6c67714e
17 changed files with 656 additions and 239 deletions

View File

@@ -122,8 +122,7 @@ export async function getProfilesByExternalId(
${getProfileSelectFields()}
FROM profiles
GROUP BY id
HAVING project_id = ${escape(projectId)} AND external_id = ${escape(externalId)}
`
HAVING project_id = ${escape(projectId)} AND external_id = ${escape(externalId)}`
);
return data.map(transformProfile);
@@ -169,7 +168,7 @@ export interface IServiceUpsertProfile {
properties?: Record<string, unknown>;
}
function transformProfile({
export function transformProfile({
max_created_at,
first_name,
last_name,