mirror of
https://github.com/R0m1k3/CollectFlow.git
synced 2026-10-11 17:26:32 +02:00
feat: Add PostgreSQL client for bulk fetching FF Nancy data, replacing per-article HTTP API calls.
This commit is contained in:
1 parent
6ee0e3294d
commit
3a74689f31
1 file changed
+2
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user