Refactor organizer color assignment in exportWorships function: Update the logic to dynamically set the organizer color based on the worship format, improving visual consistency in exported documents.
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 6s

This commit is contained in:
Torsten Schulz (local)
2026-04-30 10:52:41 +02:00
parent 1ab5ceaac7
commit ef1225c02d

View File

@@ -2690,7 +2690,7 @@ exports.exportWorships = async (req, res) => {
const titleColor = format === 'newsletter'
? (isNeighborInvitation ? '0432FF' : '000000')
: (isNeighborInvitation ? '0432FF' : '009051');
const organizerColor = 'EE0000';
const organizerColor = format === 'newsletter' ? '000000' : 'EE0000';
const serviceColor = '0070C0';
const organColor = 'FF9300';