fix: KoePi Prospekte-Fehler werden jetzt geloggt statt verschluckt
This commit is contained in:
@@ -426,7 +426,10 @@ router.get('/offers', authenticate, async (req, res) => {
|
|||||||
|
|
||||||
router.get('/prospekte', authenticate, async (req, res) => {
|
router.get('/prospekte', authenticate, async (req, res) => {
|
||||||
try { res.json(await scrapeProspekte()); }
|
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) => {
|
router.post('/clear-cache', authenticate, (req, res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user