fix(servidor-dashboard): show DB connection count on server cards

- GetServidor: query conx_count per server with GROUP BY and attach to response
- servidor_dashboard.html: use conx_count from API (fallback to _conexiones.length)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Lizandro Guarnizo
2026-05-21 10:25:18 -05:00
co-authored by Copilot
parent a44fb490f7
commit c834e40e83
2 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -77,7 +77,7 @@
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582 4 8 4"/>
</svg>
<span class="text-sm text-slate-600">
<span class="font-bold text-blue-600" x-text="servidor._conexiones?.length || 0"></span>
<span class="font-bold text-blue-600" x-text="servidor.conx_count ?? servidor._conexiones?.length ?? 0"></span>
conexiones BD
</span>
</div>