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:
@@ -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-кода
|
||||
|
||||
Reference in New Issue
Block a user