Fix critical bug in signup code
Variable scope/assignment issue
This commit is contained in:
parent
157d2dee49
commit
6972d6c88e
@ -214,8 +214,9 @@ module.exports = async function(robot, kredits) {
|
||||
res.status(400).json({});
|
||||
return;
|
||||
}
|
||||
let githubResponse;
|
||||
try {
|
||||
const githubResponse = await fetch('https://api.github.com/user', {
|
||||
githubResponse = await fetch('https://api.github.com/user', {
|
||||
headers: {
|
||||
'Accept': 'application/vnd.github.v3+json',
|
||||
'Authorization': `token ${accessToken}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user