Merge branch 'main' into MED-105-v3

This commit is contained in:
2025-08-14 12:21:46 +03:00
13 changed files with 183 additions and 45 deletions

View File

@@ -1,11 +1,16 @@
import { getSupabaseServerClient } from '@kit/supabase/server-client';
export enum PAGE_VIEW_ACTION {
VIEW_ANALYSIS_RESULTS = 'VIEW_ANALYSIS_RESULTS',
REGISTRATION_SUCCESS = 'REGISTRATION_SUCCESS',
}
export const createPageViewLog = async ({
accountId,
action,
}: {
accountId: string;
action: 'VIEW_ANALYSIS_RESULTS';
action: PAGE_VIEW_ACTION;
}) => {
try {
const supabase = getSupabaseServerClient();
@@ -32,4 +37,4 @@ export const createPageViewLog = async ({
} catch (error) {
console.error('Failed to insert page view log', error);
}
}
};