mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 14:51:12 -05:00
Fix remaining production readiness issues
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { supabase } from '@/integrations/supabase/client';
|
||||
import { getErrorMessage } from '@/lib/errorHandler';
|
||||
import { logger } from '@/lib/logger';
|
||||
import { updateSubmissionItem, type SubmissionItemWithDeps, type DependencyConflict } from './submissionItemsService';
|
||||
|
||||
export interface ResolutionResult {
|
||||
@@ -84,9 +85,13 @@ export async function resolveConflicts(
|
||||
success: true,
|
||||
updatedSelections,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (error: unknown) {
|
||||
const errorMsg = getErrorMessage(error);
|
||||
console.error('Conflict resolution error:', errorMsg);
|
||||
logger.error('Conflict resolution error', {
|
||||
action: 'resolve_conflicts',
|
||||
conflictCount: conflicts.length,
|
||||
error: errorMsg
|
||||
});
|
||||
return {
|
||||
success: false,
|
||||
error: errorMsg,
|
||||
@@ -230,8 +235,13 @@ export async function findMatchingEntities(
|
||||
}
|
||||
|
||||
return [];
|
||||
} catch (error) {
|
||||
console.error('Error finding matching entities:', error);
|
||||
} catch (error: unknown) {
|
||||
const errorMsg = getErrorMessage(error);
|
||||
logger.error('Error finding matching entities', {
|
||||
action: 'find_matching_entities',
|
||||
itemType,
|
||||
error: errorMsg
|
||||
});
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user