Fix company edit request method
This commit is contained in:
parent
6477eeb756
commit
31df281cde
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ const GestaoEmpresas = () => {
|
|||
console.log('📤 Dados para atualização:', payload);
|
||||
|
||||
const response = await fetch(`/api/empresas/${editingEmpresa.$id}`, {
|
||||
method: 'PUT',
|
||||
method: 'PATCH',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(payload)
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue