feat(audit): implement page view logging for membership confirmation and analysis results

This commit is contained in:
Danel Kungla
2025-08-14 09:37:03 +03:00
parent 536f915c69
commit bbb5e83ed9
3 changed files with 75 additions and 28 deletions

View File

@@ -5,6 +5,10 @@ import pathsConfig from '@/config/paths.config';
import { getSupabaseServerClient } from '@kit/supabase/server-client';
import { withI18n } from '~/lib/i18n/with-i18n';
import {
PAGE_VIEW_ACTION,
createPageViewLog,
} from '~/lib/services/audit/pageView.service';
import MembershipConfirmationNotification from './_components/membership-confirmation-notification';
@@ -18,6 +22,10 @@ async function MembershipConfirmation() {
if (!user?.id) {
redirect(pathsConfig.app.home);
}
await createPageViewLog({
accountId: user.id,
action: PAGE_VIEW_ACTION.REGISTRATION_SUCCESS,
});
return <MembershipConfirmationNotification userId={user.id} />;
}