File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ export default class UploadPlugin extends AdminForthPlugin {
365365 return { error : `Record with id ${ recordId } not found` } ;
366366 }
367367
368- attachmentFiles = this . options . generation . attachFiles ( { record, adminUser } ) ;
368+ attachmentFiles = await this . options . generation . attachFiles ( { record, adminUser } ) ;
369369 // if files is not array, make it array
370370 if ( ! Array . isArray ( attachmentFiles ) ) {
371371 attachmentFiles = [ attachmentFiles ] ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export type PluginOptions = {
131131 attachFiles ?: ( { record, adminUser } : {
132132 record : any ,
133133 adminUser : AdminUser ,
134- } ) => string [ ] ,
134+ } ) => string [ ] | Promise < string [ ] > ,
135135
136136
137137 /**
You can’t perform that action at this time.
0 commit comments