Add account hierarchy framework with migrations, RLS policies, and UI components
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
'use server';
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { authActionClient } from '@kit/next/safe-action';
|
||||
import { getLogger } from '@kit/shared/logger';
|
||||
import { getSupabaseServerClient } from '@kit/supabase/server-client';
|
||||
|
||||
import {
|
||||
CreateEventSchema,
|
||||
EventRegistrationSchema,
|
||||
@@ -44,7 +46,10 @@ export const createHolidayPass = authActionClient
|
||||
const logger = await getLogger();
|
||||
const api = createEventManagementApi(client);
|
||||
|
||||
logger.info({ name: 'event.createHolidayPass' }, 'Creating holiday pass...');
|
||||
logger.info(
|
||||
{ name: 'event.createHolidayPass' },
|
||||
'Creating holiday pass...',
|
||||
);
|
||||
const result = await api.createHolidayPass(input);
|
||||
logger.info({ name: 'event.createHolidayPass' }, 'Holiday pass created');
|
||||
return { success: true, data: result };
|
||||
|
||||
Reference in New Issue
Block a user