diff --git a/backend/utils/ping.js b/backend/utils/ping.js index 08530c7..ae3b675 100644 --- a/backend/utils/ping.js +++ b/backend/utils/ping.js @@ -2,7 +2,7 @@ const api = require("./controller-api"); const db = require("./db"); export default pingAll; -const pingAll = async (network) => { +async function pingAll (network) { await Promise.all(network.members.map((async (member) => { try { await api.get("peer/" + member.id);