File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/plugin-form-builder/src/collections/FormSubmissions/hooks Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- import type { CollectionBeforeChangeHook } from 'payload'
1+ import type { CollectionAfterChangeHook } from 'payload'
22
33import type { Email , FormattedEmail , FormBuilderPluginConfig } from '../../../types.js'
44
55import { serializeLexical } from '../../../utilities/lexical/serializeLexical.js'
66import { replaceDoubleCurlys } from '../../../utilities/replaceDoubleCurlys.js'
77import { serializeSlate } from '../../../utilities/slate/serializeSlate.js'
88
9- type BeforeChangeParams = Parameters < CollectionBeforeChangeHook > [ 0 ]
9+ type AfterChangeParams = Parameters < CollectionAfterChangeHook > [ 0 ]
1010
1111export const sendEmail = async (
12- beforeChangeParameters : BeforeChangeParams ,
12+ afterChangeParameters : AfterChangeParams ,
1313 formConfig : FormBuilderPluginConfig ,
14- ) : Promise < BeforeChangeParams [ 'data' ] > => {
15- const { data, operation, req } = beforeChangeParameters
14+ ) : Promise < AfterChangeParams [ 'data' ] > => {
15+ const { data, operation, req } = afterChangeParameters
1616
1717 if ( operation === 'create' ) {
1818 const {
You can’t perform that action at this time.
0 commit comments