From 453f8654b7bf4194d73af27847086080b29bcd4d Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Wed, 25 Mar 2026 16:34:23 -0500 Subject: [PATCH] set status to sent if sent --- src/routes/invoices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/invoices.js b/src/routes/invoices.js index 3fc9386..192941e 100644 --- a/src/routes/invoices.js +++ b/src/routes/invoices.js @@ -895,7 +895,7 @@ router.post('/:id/send-email', async (req, res) => { const info = await sendInvoiceEmail(invoice, recipientEmail, customText, stripeLink, pdfBuffer); // 4. (Optional) Status in der DB aktualisieren - //await pool.query('UPDATE invoices SET email_status = $1 WHERE id = $2', ['sent', id]); + await pool.query('UPDATE invoices SET email_status = $1 WHERE id = $2', ['sent', id]); res.json({ success: true, messageId: info.messageId });