From 2fd5dc03895b768bc4480cf78ce67171db13ee9c Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 30 Apr 2026 10:44:04 +0200 Subject: [PATCH] Update worship export logic to conditionally include internal service information: Modify exportWorships function in worshipController.js to check format before including sacristan service and organ playing details, enhancing export customization based on the output type. --- controllers/worshipController.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controllers/worshipController.js b/controllers/worshipController.js index e05e17f..b75e8fa 100644 --- a/controllers/worshipController.js +++ b/controllers/worshipController.js @@ -2685,6 +2685,7 @@ exports.exportWorships = async (req, res) => { const collectionStr = worship.collection || ''; const sacristanServiceStr = worship.sacristanService || ''; const organPlayingStr = worship.organPlaying || ''; + const includeInternalServiceInfo = format !== 'newsletter'; const secondCellChildren = []; @@ -2720,7 +2721,7 @@ exports.exportWorships = async (req, res) => { } // Dienst (nicht bold, schwarz, Arial 11pt) - if (sacristanServiceStr) { + if (includeInternalServiceInfo && sacristanServiceStr) { secondCellChildren.push(new TextRun({ text: '', break: 1 // Zeilenumbruch @@ -2760,7 +2761,7 @@ exports.exportWorships = async (req, res) => { } // Orgelspiel (nicht bold, schwarz, Arial 11pt) - if (organPlayingStr) { + if (includeInternalServiceInfo && organPlayingStr) { secondCellChildren.push(new TextRun({ text: '', break: 1