feat: Add PostgreSQL client for bulk fetching FF Nancy data, replacing per-article HTTP API calls.

This commit is contained in:
Michael committed 2026-03-21 17:11:54 +01:00
1 parent 6ee0e3294d
commit 3a74689f31
1 file changed
+2 -2
+2 -2
View File
@@ -566,9 +566,9 @@ export async function pgGetDashboardData(): Promise<DashboardData> {
return {
site: s.site,
ca_hier: Number(s.ca_ttc) || 0,
ca_n1: n1?.ca ?? Number(s.ca_ttc_n1) || 0,
ca_n1: n1?.ca ?? 0, // uniquement jour de semaine N-1, jamais date calendaire
tickets_hier: Number(s.trafic) || 0,
tickets_n1: n1?.trafic ?? Number(s.trafic_n1) || 0,
tickets_n1: n1?.trafic ?? 0, // idem
qte_hier: 0,
marge_hier: 0,
lignes_hier: 0,