This commit is contained in:
Thomas E Lackey 2020-06-08 22:51:43 -05:00
parent eabd69c953
commit 5a1bf272da
2 changed files with 4 additions and 4 deletions

View File

@ -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()) {

View File

@ -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: {