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 {
365
365
return { error : `Record with id ${ recordId } not found` } ;
366
366
}
367
367
368
- attachmentFiles = this . options . generation . attachFiles ( { record, adminUser } ) ;
368
+ attachmentFiles = await this . options . generation . attachFiles ( { record, adminUser } ) ;
369
369
// if files is not array, make it array
370
370
if ( ! Array . isArray ( attachmentFiles ) ) {
371
371
attachmentFiles = [ attachmentFiles ] ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export type PluginOptions = {
131
131
attachFiles ?: ( { record, adminUser } : {
132
132
record : any ,
133
133
adminUser : AdminUser ,
134
- } ) => string [ ] ,
134
+ } ) => string [ ] | Promise < string [ ] > ,
135
135
136
136
137
137
/**
You can’t perform that action at this time.
0 commit comments