Javascript – Is there a way to wait for response from a function before sending a response to my frontend?
I am building a logic to upload videos to cloudinary using node.js, next.js and multer package. I have a mongodb document that I would like to store the video url and publicid of the video once cloudinary upload function completes.…