Notes saving fixes
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user