MED-147: add doctor actions logging (#59)
* MED-147: add doctor actions logging * enum casing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
|
||||
export enum PAGE_VIEW_ACTION {
|
||||
export enum PageViewAction {
|
||||
VIEW_ANALYSIS_RESULTS = 'VIEW_ANALYSIS_RESULTS',
|
||||
REGISTRATION_SUCCESS = 'REGISTRATION_SUCCESS',
|
||||
VIEW_ORDER_ANALYSIS = 'VIEW_ORDER_ANALYSIS',
|
||||
@@ -12,7 +12,7 @@ export const createPageViewLog = async ({
|
||||
action,
|
||||
}: {
|
||||
accountId: string;
|
||||
action: PAGE_VIEW_ACTION;
|
||||
action: PageViewAction;
|
||||
}) => {
|
||||
try {
|
||||
const supabase = getSupabaseServerClient();
|
||||
|
||||
Reference in New Issue
Block a user