Refactor: Implement full error logging

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 19:23:28 +00:00
parent 3d646ec6f7
commit 9bf5ea322e
20 changed files with 75 additions and 122 deletions

View File

@@ -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({