From aa53cb487b7ed3581585aa454fe7919cc3160f82 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Mon, 10 Jun 2024 17:50:20 +0300 Subject: [PATCH] I tried to iterate over not iterable object again :sob: --- chatBot/includes/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatBot/includes/client.js b/chatBot/includes/client.js index 75e7b79..335767e 100644 --- a/chatBot/includes/client.js +++ b/chatBot/includes/client.js @@ -23,7 +23,7 @@ class Client extends EventEmitter { console.log(`Peers count: ${this.swarm.connections.size}`); if(this.swarm.connections.size > 0) { let arr = []; - [...this.swarm.peers].forEach(peer => arr.push([...peer.topics])); + [...this.swarm.peers].forEach(peer => arr.push([peer.topics])); console.log(arr); process.exit(-1); }