Compare commits

..

2 Commits

Author SHA1 Message Date
Bas
6cf055178b Merge pull request #38 from xtr-dev/dev
Add debug log for email transporter configuration and bump version to…
2025-09-14 16:15:41 +02:00
aa978090fa Add debug log for email transporter configuration and bump version to 0.1.23 2025-09-14 16:14:56 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@xtr-dev/payload-mailing", "name": "@xtr-dev/payload-mailing",
"version": "0.1.22", "version": "0.1.23",
"description": "Template-based email system with scheduling and job processing for PayloadCMS", "description": "Template-based email system with scheduling and job processing for PayloadCMS",
"type": "module", "type": "module",
"main": "dist/index.js", "main": "dist/index.js",

View File

@@ -45,6 +45,7 @@ export class MailingService implements IMailingService {
// Use Payload's configured mailer (cast to any to handle different adapter types) // Use Payload's configured mailer (cast to any to handle different adapter types)
this.transporter = this.payload.email as any this.transporter = this.payload.email as any
} else { } else {
console.log('[DEBUG] email: ', this.payload.email);
throw new Error('Email transport configuration is required either in plugin config or Payload config') throw new Error('Email transport configuration is required either in plugin config or Payload config')
} }