From 3bec1c3499525a04cec1edcd233f0481319b0892 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sat, 13 Mar 2021 23:09:30 +1300 Subject: [PATCH] cli: fix breaks caused by refactor --- cli/commands/execute.js | 2 +- cli/commands/ppman_commands/list.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');