Skip to content

Commit

Permalink
fix(minecraftBot): get specifics from axios response
Browse files Browse the repository at this point in the history
  • Loading branch information
gtempus committed Nov 3, 2023
1 parent 7a0db8f commit 4908993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minecraft-slack-bot/minecraftBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ async function invokeGithubAction(minecraftServerCommand) {
};
// Make an HTTP POST request to trigger the GitHub Action
const response = await axios.request(config);
console.log(`GitHub Action Response: ${{response}}`);
return response;
console.log(`GitHub Action Response: ${response.status} ${response.data}`);
return response.data;
}

exports.handler = async (event) => {
Expand Down

0 comments on commit 4908993

Please sign in to comment.