From abd56fcc6fe6760451d3e1c90f53c18951e5b9c1 Mon Sep 17 00:00:00 2001 From: VPS 4 Builder Date: Wed, 13 May 2026 15:32:57 +0200 Subject: [PATCH] fix(frontend): remove duplicated keys in backend.ts --- frontend/services/backend.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/frontend/services/backend.ts b/frontend/services/backend.ts index 9797bc7..3f301ab 100644 --- a/frontend/services/backend.ts +++ b/frontend/services/backend.ts @@ -682,31 +682,6 @@ export const HybridBackend = { console.log(`[Mock] Tratamento ${tratamentoId} finalizado com contenção:`, contencao); }, - salvarAgendamento: async (agendamento: Partial) => { - const data = enforceUppercase(agendamento); - const body = { id: Math.random().toString(), ...data }; - const res = await apiFetch(`${API_URL}/agendamentos`, { - method: 'POST', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify(body) - }); - return await res.json(); - }, - - atualizarAgendamento: async (id: string, agendamento: Partial) => { - const data = enforceUppercase(agendamento); - const res = await apiFetch(`${API_URL}/agendamentos/${id}`, { - method: 'PUT', - headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify(data) - }); - return await res.json(); - }, - - excluirAgendamento: async (id: string) => { - await apiFetch(`${API_URL}/agendamentos/${id}`, { method: 'DELETE' }); - }, - // --- LEAD & NOTIFICATION METHODS --- saveLead: async (lead: Partial) => {