fix: correct column names in scheduler status query (total, errores)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-17 15:26:34 -05:00
co-authored by Claude Sonnet 4.6
parent 467a24baa4
commit 12f5f1388d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ async function pollSchedulerStatus() {
if (d.ultimo_log) {
const ul = d.ultimo_log;
const ts = new Date(ul.created_at).toLocaleTimeString('es-CO');
parts.push(`<span><i class="fas fa-history mr-1 text-purple-400"></i>Último sync scheduler: <strong>${ts}</strong> · ${ul.total_procesados ?? 0} procesados, ${ul.total_errores ?? 0} errores</span>`);
parts.push(`<span><i class="fas fa-history mr-1 text-purple-400"></i>Último sync scheduler: <strong>${ts}</strong> · ${ul.total ?? 0} procesados, ${ul.errores ?? 0} errores</span>`);
}
live.innerHTML = parts.join('');
} catch(_) {}