Lint.
This commit is contained in:
parent
5006fd25c0
commit
c586a25992
@ -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 })
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -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)
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user