Hi I want to return the response after a file is uploaded to firebase right now I can upload but I want the file to be uploaded before returning a response
const file = bucket.file(`equipo_${idEquipo}`);
const fileStream = file.createWriteStream({ resumable: false });
fileStream.end(newImg.buffer);
fileStream.on("error", err => console.log(err));
fileStream.on("finish", () => {
});
return response;