mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 20:11:14 -05:00
Fix all compliance violations
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import type { EntityType } from '@/types/versioning';
|
||||
import { createTableQuery } from './supabaseHelpers';
|
||||
import { logger } from './logger';
|
||||
|
||||
/**
|
||||
* Manually trigger cleanup of old versions for a specific entity type
|
||||
@@ -37,7 +38,7 @@ export async function cleanupVersions(
|
||||
});
|
||||
|
||||
if (error) {
|
||||
console.error('Version cleanup failed:', error);
|
||||
logger.error('Version cleanup failed', { error, entityType, keepCount });
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -97,7 +98,7 @@ export async function getVersionStats(
|
||||
const { data, error } = result;
|
||||
|
||||
if (error || !data) {
|
||||
console.error('Failed to fetch version stats:', error);
|
||||
logger.error('Failed to fetch version stats', { error, entityType, entityId });
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user