änderung der route für billing

This commit is contained in:
cay 2026-03-27 12:33:12 +00:00
parent 7f314c9f5e
commit adef137459

View File

@ -217,8 +217,9 @@ router.get('/export/csv', requireAdmin, async (req, res) => {
`, [period]); `, [period]);
// Alle offenen Rechnungen dieser Periode als bezahlt markieren // Alle offenen Rechnungen dieser Periode als bezahlt markieren
// COLLATE explizit setzen wegen möglichem Collation-Konflikt
await db.query( await db.query(
"UPDATE invoices SET status='paid', paid_at=NOW() WHERE period=? AND status='open'", "UPDATE invoices SET status='paid', paid_at=NOW() WHERE period=? COLLATE utf8mb4_unicode_ci AND status='open'",
[period] [period]
); );