diff options
Diffstat (limited to 'server/helpers/image-utils.ts')
-rw-r--r-- | server/helpers/image-utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/image-utils.ts b/server/helpers/image-utils.ts index 0065f4210..3eaa674ed 100644 --- a/server/helpers/image-utils.ts +++ b/server/helpers/image-utils.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import 'multer' | 1 | import 'multer' |
2 | import * as sharp from 'sharp' | 2 | import * as sharp from 'sharp' |
3 | import { unlinkPromise } from './core-utils' | 3 | import { remove } from 'fs-extra' |
4 | 4 | ||
5 | async function processImage ( | 5 | async function processImage ( |
6 | physicalFile: { path: string }, | 6 | physicalFile: { path: string }, |
@@ -11,7 +11,7 @@ async function processImage ( | |||
11 | .resize(newSize.width, newSize.height) | 11 | .resize(newSize.width, newSize.height) |
12 | .toFile(destination) | 12 | .toFile(destination) |
13 | 13 | ||
14 | await unlinkPromise(physicalFile.path) | 14 | await remove(physicalFile.path) |
15 | } | 15 | } |
16 | 16 | ||
17 | // --------------------------------------------------------------------------- | 17 | // --------------------------------------------------------------------------- |