mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 06:31:13 -05:00
Fix remaining catch blocks
This commit is contained in:
@@ -244,8 +244,8 @@ export async function fetchSubmissions(
|
||||
submissions: enrichedSubmissions,
|
||||
totalCount: count || 0,
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('Error fetching submissions:', error);
|
||||
} catch (error: unknown) {
|
||||
console.error('Error fetching submissions:', error instanceof Error ? error.message : String(error));
|
||||
return {
|
||||
submissions: [],
|
||||
totalCount: 0,
|
||||
@@ -281,8 +281,8 @@ export async function fetchUserProfiles(
|
||||
}
|
||||
|
||||
return new Map(profiles?.map(p => [p.user_id, p]) || []);
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch user profiles:', error);
|
||||
} catch (error: unknown) {
|
||||
console.error('Failed to fetch user profiles:', error instanceof Error ? error.message : String(error));
|
||||
return new Map();
|
||||
}
|
||||
}
|
||||
@@ -385,8 +385,8 @@ export async function getQueueStats(
|
||||
escalated,
|
||||
total,
|
||||
};
|
||||
} catch (error) {
|
||||
console.error('Error fetching queue stats:', error);
|
||||
} catch (error: unknown) {
|
||||
console.error('Error fetching queue stats:', error instanceof Error ? error.message : String(error));
|
||||
return {
|
||||
pending: 0,
|
||||
flagged: 0,
|
||||
|
||||
Reference in New Issue
Block a user