diff --git a/src/middleware/Uploads.js b/src/middleware/Uploads.js index 00254ca..80c1b0f 100644 --- a/src/middleware/Uploads.js +++ b/src/middleware/Uploads.js @@ -101,7 +101,7 @@ class Uploads extends Pages { const mediumFileName = `medium_${uploadname}`; const smallFileName = `small_${uploadname}`; - Promise.all([ + await Promise.all([ copyFileSync(req.file.path, join(userUploadDir, originalFileName)), resizeImage( req.file.path,