{BUGFIX} Waiting for image upload

This commit is contained in:
Damien Broqua 2023-09-26 08:58:38 +02:00
parent bd6d35e754
commit 90adfe0b23

View file

@ -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,