From adef137459d1b6121e18c32a5dbd2a1f0e509718 Mon Sep 17 00:00:00 2001 From: cay Date: Fri, 27 Mar 2026 12:33:12 +0000 Subject: [PATCH] =?UTF-8?q?=C3=A4nderung=20der=20route=20f=C3=BCr=20billin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/billing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/billing.js b/routes/billing.js index 998440f..3f94fff 100644 --- a/routes/billing.js +++ b/routes/billing.js @@ -217,8 +217,9 @@ router.get('/export/csv', requireAdmin, async (req, res) => { `, [period]); // Alle offenen Rechnungen dieser Periode als bezahlt markieren + // COLLATE explizit setzen wegen möglichem Collation-Konflikt 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] );