fix: KoePi Prospekte-Fehler werden jetzt geloggt statt verschluckt

This commit is contained in:
2026-07-12 15:30:35 +02:00
parent 3c49d1d541
commit 2f16dab643

View File

@@ -426,7 +426,10 @@ router.get('/offers', authenticate, async (req, res) => {
router.get('/prospekte', authenticate, async (req, res) => {
try { res.json(await scrapeProspekte()); }
catch(e) { res.status(500).json({ error: e.message }); }
catch(e) {
console.error('🍺 KöPi Prospekte-Fehler:', e.message);
res.status(500).json({ error: e.message });
}
});
router.post('/clear-cache', authenticate, (req, res) => {