Remove conditional transporter initialization and bump version to 0.1.22

This commit is contained in:
2025-09-14 13:52:49 +02:00
parent ea7d8dfdd5
commit b4bad70634
2 changed files with 2 additions and 5 deletions

View File

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

View File

@@ -29,10 +29,7 @@ export class MailingService implements IMailingService {
const emailsConfig = config.collections?.emails
this.emailsCollection = typeof emailsConfig === 'string' ? emailsConfig : 'emails'
// Only initialize transporter if payload is properly set
if (payload && payload.db) {
this.initializeTransporter()
}
this.initializeTransporter()
}
private initializeTransporter(): void {