This commit is contained in:
Thomas E Lackey 2020-06-11 16:22:19 -05:00
parent 5006fd25c0
commit c586a25992
2 changed files with 4 additions and 4 deletions

View File

@ -59,6 +59,6 @@ export const logResolvers = {
timestamp: new Date().toUTCString(), timestamp: new Date().toUTCString(),
json: JSON.stringify({ incremental, lines }) json: JSON.stringify({ incremental, lines })
}; };
}, }
} }
}; };

View File

@ -6,7 +6,7 @@ import moment from 'moment';
import pick from 'lodash.pick'; import pick from 'lodash.pick';
import os from 'os'; import os from 'os';
import si from 'systeminformation'; import si from 'systeminformation';
import { spawnSync } from "child_process"; import { spawnSync } from 'child_process';
const num = new Intl.NumberFormat('en', { maximumSignificantDigits: 3 }); const num = new Intl.NumberFormat('en', { maximumSignificantDigits: 3 });
@ -88,7 +88,7 @@ const getServiceInfo = async () => {
const child = spawnSync(command, args, { encoding: 'utf8' }); const child = spawnSync(command, args, { encoding: 'utf8' });
return JSON.parse(child.stdout); return JSON.parse(child.stdout);
} };
export const systemResolvers = { export const systemResolvers = {
Query: { Query: {
@ -107,6 +107,6 @@ export const systemResolvers = {
timestamp: new Date().toUTCString(), timestamp: new Date().toUTCString(),
json: JSON.stringify(serviceInfo) json: JSON.stringify(serviceInfo)
}; };
}, }
} }
}; };