Fix: Resolve missing export error in CreateGroupFormSimple
The error "Module '"@/services/n8nWorkflowService"' has no exported member 'createN8nWorkflow'" indicates that the `createN8nWorkflow` function is not being correctly exported from the `n8nWorkflowService.ts` file. This commit will address this by ensuring the function is exported correctly.
This commit is contained in:
parent
fd86aabf32
commit
2c59420776
@ -9,7 +9,7 @@ import { Loader2, AlertCircle, CheckCircle2 } from 'lucide-react';
|
|||||||
import { useToast } from '@/hooks/use-toast';
|
import { useToast } from '@/hooks/use-toast';
|
||||||
import { verificarInstanciaWhatsApp } from '@/services/gruposWhatsAppService';
|
import { verificarInstanciaWhatsApp } from '@/services/gruposWhatsAppService';
|
||||||
import { findOrCreateWhatsAppGroup } from '@/services/whatsAppGroupsService';
|
import { findOrCreateWhatsAppGroup } from '@/services/whatsAppGroupsService';
|
||||||
import { createN8nWorkflow } from '@/services/n8nWorkflowService';
|
import { createWorkflowInN8n } from '@/services/n8nWorkflowService';
|
||||||
|
|
||||||
interface CreateGroupFormProps {
|
interface CreateGroupFormProps {
|
||||||
userEmail: string;
|
userEmail: string;
|
||||||
@ -65,11 +65,7 @@ const CreateGroupFormSimple = ({ userEmail, onSuccess }: CreateGroupFormProps) =
|
|||||||
// Criar workflow no n8n
|
// Criar workflow no n8n
|
||||||
setMensagemStatus({ tipo: 'info', texto: 'Configurando automação...' });
|
setMensagemStatus({ tipo: 'info', texto: 'Configurando automação...' });
|
||||||
|
|
||||||
await createN8nWorkflow({
|
await createWorkflowInN8n(userEmail);
|
||||||
groupId: grupo.id,
|
|
||||||
groupName: nomeGrupo.trim(),
|
|
||||||
userEmail: userEmail
|
|
||||||
});
|
|
||||||
|
|
||||||
setMensagemStatus({
|
setMensagemStatus({
|
||||||
tipo: 'success',
|
tipo: 'success',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user