mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-28 15:27:00 -05:00
Refactor: Implement full error logging
This commit is contained in:
@@ -439,7 +439,11 @@ export function SubmissionReviewManager({
|
||||
);
|
||||
|
||||
if (error) {
|
||||
logger.error('Edge function failed', { error: getErrorMessage(error) });
|
||||
handleError(error, {
|
||||
action: 'Send escalation notification',
|
||||
userId: user.id,
|
||||
metadata: { submissionId }
|
||||
});
|
||||
// Fallback to direct database update if email fails
|
||||
await escalateSubmission(submissionId, reason, user.id);
|
||||
toast({
|
||||
|
||||
Reference in New Issue
Block a user