How to wait until update_stream() finishes?
Hello guys, i am facing the problem, that my backend server is executing the return-Statement before actually finishing the upload_stream()-method. The code: app.post('/changeAvatar', upload.single('file'), async (req, res) => { let url = ""; let cld_upload_stream = cloudinary.uploader.upload_stream( { folder: "avatar" },…