mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 16:23:23 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bba223410d | ||
| 0d295603ef | |||
| bd1842d45c |
@@ -126,9 +126,10 @@ When you start the dev server, look for these messages:
|
|||||||
🎯 Test interface will be available at: /mailing-test
|
🎯 Test interface will be available at: /mailing-test
|
||||||
|
|
||||||
✅ Example email templates created successfully
|
✅ 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
|
## Troubleshooting
|
||||||
|
|
||||||
### Server won't start
|
### Server won't start
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@xtr-dev/payload-mailing",
|
"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",
|
"description": "Template-based email system with scheduling and job processing for PayloadCMS",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
|||||||
@@ -106,12 +106,9 @@ export const mailingPlugin = (pluginConfig: MailingPluginConfig) => (config: Con
|
|||||||
},
|
},
|
||||||
} as MailingContext
|
} as MailingContext
|
||||||
|
|
||||||
console.log('PayloadCMS Mailing Plugin initialized successfully')
|
|
||||||
|
|
||||||
// Schedule the initial email processing job
|
// Schedule the initial email processing job
|
||||||
try {
|
try {
|
||||||
await scheduleEmailsJob(payload, queueName, 60000) // Schedule in 1 minute
|
await scheduleEmailsJob(payload, queueName, 60000) // Schedule in 1 minute
|
||||||
console.log(`🔄 Scheduled initial email processing job in queue: ${queueName}`)
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to schedule email processing job:', error)
|
console.error('Failed to schedule email processing job:', error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user