feat: implement PostgreSQL-based bulk fetching for article and sales data to replace HTTP API calls

This commit is contained in:
Michael committed 2026-04-23 10:32:29 +02:00
1 parent 64da878abb
commit 32c1e06782
3 files changed
+35 -21

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
const fs = require('fs');
async function test() {
const res = await fetch("https://api.ffnancy.fr/api/performance/dashboard?date=2024-04-20");
const data = await res.json();
console.log(JSON.stringify(data.top10_ca?.[0] || {}, null, 2));
}
test();