Skip to content

Commit dbf56c0

Browse files
Merge pull request humanitec-architecture#2 from htc-demo-27/fixGHappCreation
Moved log output to correct scope for used const
2 parents c183d20 + 31c919e commit dbf56c0

File tree

1 file changed

+2
-2
lines changed
  • examples/with-backstage/create-gh-app

1 file changed

+2
-2
lines changed

examples/with-backstage/create-gh-app/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ const writeConfigFile = async (data, webhookUrl) => {
9191
}, null, 2)
9292

9393
await fs.writeFile(fileName, content);
94+
95+
console.log(`Created ${fileName}, you can close the server now.`)
9496
}
9597

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

110112
await writeConfigFile(data, webhookUrl);
111113

112-
console.log(`Created ${fileName}, you can close the server now.`)
113-
114114
res.writeHead(302, { Location: `${data.html_url}/installations/new` });
115115
res.end();
116116
}

0 commit comments

Comments
 (0)