diff --git a/packages/console-server/src/resolvers/ipfs.js b/packages/console-server/src/resolvers/ipfs.js index 09041de..90c0acf 100644 --- a/packages/console-server/src/resolvers/ipfs.js +++ b/packages/console-server/src/resolvers/ipfs.js @@ -26,7 +26,7 @@ export const ipfsResolvers = { const peers = await ipfs.swarm.peers(); const stats = await ipfs.stats.repo(); // Do not expose the repo path. - delete stats['repoPath']; + delete stats.repoPath; const refs = []; for await (const ref of ipfs.refs.local()) { diff --git a/packages/console-server/src/resolvers/system.js b/packages/console-server/src/resolvers/system.js index a14314a..cd86bbd 100644 --- a/packages/console-server/src/resolvers/system.js +++ b/packages/console-server/src/resolvers/system.js @@ -31,7 +31,7 @@ const getSystemInfo = async () => { const addresses = Object.entries(ifaces).reduce((result, [, values]) => { values.forEach(({ family, address }) => { address = address.toLowerCase(); - //TODO(telackey): Include link-local IPv6? + // TODO(telackey): Include link-local IPv6? if (!address.startsWith('127.') && !address.startsWith('fe80::') && !address.startsWith('::1')) { result.push(address); } @@ -63,12 +63,12 @@ const getSystemInfo = async () => { os: { arch: os.arch(), platform: os.platform(), - version: os.version ? os.version() : undefined, // Node > 13 + version: os.version ? os.version() : undefined // Node > 13 }, time: { now: moment(), - up: moment().subtract(os.uptime(), 'seconds'), + up: moment().subtract(os.uptime(), 'seconds') }, nodejs: {