Closed koushik-dasss closed 9 months ago
Copying my comment from #2772 because this PR has the same issue.
The changes to the function look good. You’ve changed the signature of the function so that it no longer accepts a callback as an argument. So you need to make sure that you have updated all the places where this function is used so that the work with an async/promise call instead of passing a callback.
Using return promise logic of JS to get the ERROR CASES fixed without ignoring like the current code does . Fixes IGNORANCE OF ERROR CASES by adding return promise method .