const { db } = require('./src/database/db'); async function updateTemplate() { try { const englishBody = `

Gallery Successfully Created

Dear {{host_name}},

Your photo gallery "{{event_name}}" has been successfully created\!

{{welcome_message_section}}

Gallery Details:

Share this link and password with your guests so they can view and download photos.

View Gallery

`; const germanBody = `

Galerie erfolgreich erstellt

Liebe(r) {{host_name}},

Ihre Fotogalerie "{{event_name}}" wurde erfolgreich erstellt\!

{{welcome_message_section}}

Galerie-Details:

Teilen Sie diesen Link und das Passwort mit Ihren Gästen, damit sie Fotos ansehen und herunterladen können.

Galerie anzeigen

`; await db('email_templates') .where('template_key', 'gallery_created') .update({ body_html_en: englishBody, body_html_de: germanBody }); console.log('Email template updated successfully'); } catch (error) { console.error('Error updating template:', error); } finally { process.exit(0); } } updateTemplate();