Notes saving fixes

This commit is contained in:
2025-10-07 09:16:27 -04:00
parent 2f505ad7e2
commit 3faec06186
2 changed files with 3 additions and 4 deletions

View File

@@ -77,11 +77,9 @@ export default defineEventHandler(async (event) => {
// Create formatted text content
const textContent = `
================================================================================
New Life Christian Church
New Life Christian Church - SERMON NOTES
================================================================================
SERMON NOTES
Title: ${sermon.title}
Date: ${sermonDate}

View File

@@ -43,7 +43,8 @@ export default defineEventHandler(async (event) => {
// Get user's notes
const noteRecord = getSermonNote(user.id!, sermonId)
const userNotes = noteRecord?.notes || ''
// Convert line breaks to HTML breaks for email display
const userNotes = noteRecord?.notes ? noteRecord.notes.replace(/\n/g, '<br>') : ''
// Format bible references for HTML email
let bibleReferencesText = ''