Clean up sendEmail.ts and bump version to 0.4.14

- Remove duplicate nested if statement at line 188
- Remove redundant comments throughout the file
- Simplify code structure for better readability
- Bump patch version from 0.4.13 to 0.4.14

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-06 22:59:55 +02:00
parent c62a364d9c
commit f303eda652
4 changed files with 26 additions and 157 deletions

View File

@@ -10,6 +10,26 @@ const Emails: CollectionConfig = {
group: 'Mailing',
description: 'Email delivery and status tracking',
},
defaultPopulate: {
template: true,
to: true,
cc: true,
bcc: true,
from: true,
replyTo: true,
jobs: true,
status: true,
attempts: true,
lastAttemptAt: true,
error: true,
priority: true,
scheduledAt: true,
sentAt: true,
variables: true,
html: true,
text: true,
createdAt: true,
},
fields: [
{
name: 'template',