fix(frontend): remove syntax errors in backend.ts
This commit is contained in:
@@ -449,7 +449,6 @@ export const HybridBackend = {
|
|||||||
salvarAgendamento: async (ag: Partial<Agendamento>) => {
|
salvarAgendamento: async (ag: Partial<Agendamento>) => {
|
||||||
const res = await apiFetch(`${API_URL}/agendamentos`, {
|
const res = await apiFetch(`${API_URL}/agendamentos`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
,
|
|
||||||
body: JSON.stringify(ag)
|
body: JSON.stringify(ag)
|
||||||
});
|
});
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
@@ -462,7 +461,6 @@ export const HybridBackend = {
|
|||||||
atualizarAgendamento: async (id: string, data: Partial<Agendamento>) => {
|
atualizarAgendamento: async (id: string, data: Partial<Agendamento>) => {
|
||||||
const res = await apiFetch(`${API_URL}/agendamentos/${id}`, {
|
const res = await apiFetch(`${API_URL}/agendamentos/${id}`, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
,
|
|
||||||
body: JSON.stringify(data)
|
body: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
|
|||||||
Reference in New Issue
Block a user