diff --git a/src/appointment.php b/src/appointment.php
index ba257f8..4e08580 100644
--- a/src/appointment.php
+++ b/src/appointment.php
@@ -63,6 +63,7 @@
+
diff --git a/src/database.php b/src/database.php
index ea08eeb..970735d 100644
--- a/src/database.php
+++ b/src/database.php
@@ -403,9 +403,7 @@ function fetchDoctorHolidays($pdo, $doctor)
function createAppointment($pdo, $data){
$query = "INSERT INTO cita (fecha, hora, duracion, medico, observaciones, paciente) VALUES (?,?,?,?,?,?)";
- $result = $pdo->prepare($query);
- $result->execute([$data["fecha"], $data["hora"], $data["duracion"],
+ $pdo->prepare($query)->execute([$data["fecha"], $data["hora"], $data["duracion"],
$data["doctor"], $data["observaciones"], $data["paciente"]]);
- $result->debugDumpParams();
return "Cita creada con éxito";
}