style: fix lgtm lint

This commit is contained in:
NoobTW 2022-08-25 08:02:56 +08:00
parent d3fdac61bd
commit 45244b4433
No known key found for this signature in database
GPG key ID: 3C04B63FD6FB4159

View file

@ -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);