Fix all compliance violations

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 18:38:46 +00:00
parent 7eb0b77d76
commit 6efb6dda66
6 changed files with 60 additions and 40 deletions

View File

@@ -1,4 +1,5 @@
import { supabase } from '@/integrations/supabase/client';
import { logger } from './logger';
/**
* Generate a URL-safe slug from a name
@@ -50,7 +51,7 @@ export async function ensureUniqueSlug(
const { data, error } = await query.limit(1);
if (error) {
console.error(`Error checking slug uniqueness in ${tableName}:`, error);
logger.error('Error checking slug uniqueness', { error, tableName });
throw error;
}