Buchungskalender: Abgleich – Rechnungs-PDF 200-Pfad getestet, 501 nur bei fehlendem Modul

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
knsoandClaude Opus 5.5 committed 2026-10-07 14:52:13 +00:00
1 parent d27f6d5ddb
commit 2eb38032d3
3 files changed
+11 -7

No files matched your search

+2 -1
View File
@@ -606,7 +606,8 @@ router.get('/rechnungen/:datei', route(async (req, res) => {
let modul
try {
modul = await import('../services/unterkunft/rechnungPdf.js')
} catch {
} catch (err) {
if (err?.code !== 'ERR_MODULE_NOT_FOUND') throw err
return res.status(501).json({ fehler: 'nicht_verfuegbar' })
}
const art = dok.art === 'storno' ? 'storno' : 'rechnung'