How to fix TypeError: Asynchronous iterator returned a null reference (promise-based) in Node.js | DevErrors