Decode json.

This commit is contained in:
2020-06-11 01:25:46 -05:00
parent 99f87336c6
commit a36c6cfee8
10 changed files with 28 additions and 29 deletions
@@ -87,7 +87,7 @@ const getServiceInfo = async () => {
const args = ['service', '--json'];
const child = spawnSync(command, args, { encoding: 'utf8' });
return child.stdout;
return JSON.parse(child.stdout);
}
export const systemResolvers = {