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
@@ -81,7 +81,7 @@ async def scheduler_status():
next_run = job.next_run_time.isoformat() if job and job.next_run_time else None
conn = get_connection()
row = conn.execute(
"SELECT created_at, total_procesados, total_errores, origen "
"SELECT created_at, total, errores, origen "
"FROM sync_wa_log WHERE origen='scheduler' ORDER BY id DESC LIMIT 1"
).fetchone()
conn.close()