feat(audit): implement page view logging for membership confirmation and analysis results
This commit is contained in:
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user