fix: Change Redis channel to fixed name clientright:webform:approve

Changed from dynamic channel form_approve:{claim_id} to fixed channel:
- Channel: clientright:webform:approve
- Simpler n8n subscription (no need for dynamic channel name)
- All form approvals go to the same channel

Files:
- backend/app/api/claims.py
- frontend/src/components/form/StepClaimConfirmation.tsx
- docs/REDIS_FORM_APPROVE.md
This commit is contained in:
AI Assistant
2025-11-25 12:32:51 +03:00
parent de092755af
commit 13070a2100
3 changed files with 12 additions and 13 deletions

View File

@@ -126,7 +126,7 @@ export default function StepClaimConfirmation({
};
// Публикуем в Redis канал через backend endpoint (fire-and-forget)
// Канал: form_approve:{claim_id}
// Канал: clientright:webform:approve
fetch('/api/v1/claims/approve', {
method: 'POST',
headers: {
@@ -139,7 +139,7 @@ export default function StepClaimConfirmation({
console.error('Ошибка публикации данных формы в Redis:', error);
});
console.log('✅ Данные формы опубликованы в Redis канал form_approve:', claimId);
console.log('✅ Данные формы опубликованы в Redis канал clientright:webform:approve');
}, [claimPlanData]);
// Функция отправки SMS-кода