Skip to content

Commit

Permalink
Merge pull request #2 from htc-demo-27/fixGHappCreation
Browse files Browse the repository at this point in the history
Moved log output to correct scope for used const
  • Loading branch information
johanneswuerbach authored Oct 9, 2023
2 parents c183d20 + 31c919e commit dbf56c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/with-backstage/create-gh-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ const writeConfigFile = async (data, webhookUrl) => {
}, null, 2)

await fs.writeFile(fileName, content);

console.log(`Created ${fileName}, you can close the server now.`)
}

const handleCallback = async (req, res) => {
Expand All @@ -109,8 +111,6 @@ const handleCallback = async (req, res) => {

await writeConfigFile(data, webhookUrl);

console.log(`Created ${fileName}, you can close the server now.`)

res.writeHead(302, { Location: `${data.html_url}/installations/new` });
res.end();
}
Expand Down

0 comments on commit dbf56c0

Please sign in to comment.