Skip to content

Commit fef40b1

Browse files
committed
fix: use applyFiltersAsync instead
1 parent 24065be commit fef40b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/shared/converters/image-converter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Converter } from './converter-abstract'
2-
import { applyFilters } from '@wordpress/hooks'
2+
import { applyFilters, applyFiltersAsync } from '@wordpress/hooks'
33

44
// Supported output formats
55
const supportedFormats = [
@@ -130,7 +130,7 @@ class ImageConverter extends Converter {
130130
}
131131

132132
// Allow preprocessing of the image before the conversion
133-
const updatedFile = await applyFilters( 'cimo.convertImage.prepare', fileItem.file, outputFormat, options )
133+
const updatedFile = await applyFiltersAsync( 'cimo.convertImage.prepare', fileItem.file, outputFormat, options )
134134
if ( updatedFile ) {
135135
fileItem.file = updatedFile
136136
}

0 commit comments

Comments
 (0)