mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 08:13:23 +00:00
Remove onReady callback from plugin
The onReady callback is no longer needed since the plugin no longer schedules initial processing jobs during initialization.
This commit is contained in:
@@ -107,10 +107,6 @@ export const mailingPlugin = (pluginConfig: MailingPluginConfig) => (config: Con
|
|||||||
} as MailingContext
|
} as MailingContext
|
||||||
|
|
||||||
|
|
||||||
// Call onReady callback if provided
|
|
||||||
if (pluginConfig.onReady) {
|
|
||||||
await pluginConfig.onReady(payload)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pluginConfig.initOrder !== 'after' && config.onInit) {
|
if (pluginConfig.initOrder !== 'after' && config.onInit) {
|
||||||
await config.onInit(payload)
|
await config.onInit(payload)
|
||||||
|
|||||||
@@ -76,7 +76,6 @@ export interface MailingPluginConfig {
|
|||||||
templateEngine?: TemplateEngine
|
templateEngine?: TemplateEngine
|
||||||
richTextEditor?: RichTextField['editor']
|
richTextEditor?: RichTextField['editor']
|
||||||
beforeSend?: BeforeSendHook
|
beforeSend?: BeforeSendHook
|
||||||
onReady?: (payload: any) => Promise<void>
|
|
||||||
initOrder?: 'before' | 'after'
|
initOrder?: 'before' | 'after'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user