mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-06 13:01:46 -07:00
feat: es6+mods
This commit is contained in:
parent
773b64ea30
commit
19c92ed244
19 changed files with 179 additions and 245 deletions
|
@ -1,9 +1,9 @@
|
|||
const _ = require("lodash");
|
||||
import _ from "lodash";
|
||||
|
||||
const api = require("./controller-api");
|
||||
const db = require("./db");
|
||||
import { api } from "./controller-api.js";
|
||||
import { db } from "./db.js";
|
||||
|
||||
async function pingAll(network) {
|
||||
export async function pingAll(network) {
|
||||
await Promise.all(
|
||||
network.members.map(async (member) => {
|
||||
console.debug("Processing member " + member.id);
|
||||
|
@ -29,5 +29,3 @@ async function pingAll(network) {
|
|||
})
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = pingAll;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue