diff --git a/app.js b/app.js index 339128a..1b932fb 100644 --- a/app.js +++ b/app.js @@ -220,7 +220,7 @@ async function get_app_server() { const gzip = zlib.createGzip(); const gzipTempFileName = multer_temp_image_path + ".gz"; const tempFileWriteStream = fs.createWriteStream(gzipTempFileName); - input_read_stream.pipe(gzip).pipe(tempFileWriteStream); + await input_read_stream.pipe(gzip).pipe(tempFileWriteStream); //uploading the gzipped file to GCS await bucket.upload(gzipTempFileName, { gzip: true,