diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index adb6f20..857236e 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -126,9 +126,10 @@ When you start the dev server, look for these messages: 🎯 Test interface will be available at: /mailing-test ✅ Example email templates created successfully -PayloadCMS Mailing Plugin initialized successfully ``` +**Note**: The plugin initializes silently on success (no "initialized successfully" message). If you see no errors, the plugin loaded correctly. + ## Troubleshooting ### Server won't start diff --git a/package.json b/package.json index 85bef84..848f0fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xtr-dev/payload-mailing", - "version": "0.4.1", + "version": "0.4.3", "description": "Template-based email system with scheduling and job processing for PayloadCMS", "type": "module", "main": "dist/index.js", diff --git a/src/plugin.ts b/src/plugin.ts index 8cd05c1..911f2f4 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -106,12 +106,9 @@ export const mailingPlugin = (pluginConfig: MailingPluginConfig) => (config: Con }, } as MailingContext - console.log('PayloadCMS Mailing Plugin initialized successfully') - // Schedule the initial email processing job try { await scheduleEmailsJob(payload, queueName, 60000) // Schedule in 1 minute - console.log(`🔄 Scheduled initial email processing job in queue: ${queueName}`) } catch (error) { console.error('Failed to schedule email processing job:', error) }