Fix: Correct updateUserWhatsAppInstance call
Corrected the `updateUserWhatsAppInstance` call in `src/components/whatsapp/CreateInstanceForm.tsx` to match the expected argument count.
This commit is contained in:
parent
3e3b931ca7
commit
364304ef6c
@ -1,4 +1,3 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
@ -65,8 +64,8 @@ const CreateInstanceForm = ({ onInstanceCreated, initialInstanceName = '' }: Cre
|
||||
|
||||
console.log(`🚀 Criando instância para: ${normalizedEmail} com número: ${fullPhoneNumber}`);
|
||||
|
||||
// Criar a instância no Evolution API
|
||||
const response = await restartInstance(normalizedEmail, fullPhoneNumber);
|
||||
// Criar a instância no Evolution API - passar apenas o email
|
||||
const response = await restartInstance(normalizedEmail);
|
||||
|
||||
if (response && response.instance) {
|
||||
const instanceData: WhatsAppInstance = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user