diff --git a/cli/commands/execute.js b/cli/commands/execute.js index 443e63c..3d04ec6 100644 --- a/cli/commands/execute.js +++ b/cli/commands/execute.js @@ -60,7 +60,7 @@ exports.handler = async function(argv){ }; let response = await argv.axios.post('/jobs', request); - response = response.data.data + response = response.data function step(name, ctx){ console.log(chalk.bold(`== ${name} ==`)) diff --git a/cli/commands/ppman_commands/list.js b/cli/commands/ppman_commands/list.js index 5d6584e..b4ad16c 100644 --- a/cli/commands/ppman_commands/list.js +++ b/cli/commands/ppman_commands/list.js @@ -18,7 +18,7 @@ exports.handler = async function({axios}){ const packages = await axios.get('/packages'); - const pkg_msg = packages.data.data.packages + const pkg_msg = packages.data .map(msg_format.color) .join('\n');