Actualizar crear-cita.html

This commit is contained in:
2026-03-14 17:27:56 +00:00
parent d760638988
commit 9a589becd5

View File

@@ -144,7 +144,11 @@
// 🔧 CONFIGURACIÓN // 🔧 CONFIGURACIÓN
const API_URL = 'https://integrarepara-api.integrarepara.es'; const API_URL = 'https://integrarepara-api.integrarepara.es';
const OWNER_ID = 1; // Tu ID de empresa en la BBDD
// 🚀 MAGIA SAAS: Capturamos el ID de la empresa desde el enlace
const urlParams = new URLSearchParams(window.location.search);
// Si entran con ?c=2, cogerá el 2. Si no ponen nada, usará el 1 por seguridad.
const OWNER_ID = parseInt(urlParams.get('c')) || 1;
// Estado del cliente // Estado del cliente
let currentClient = null; let currentClient = null;