This commit is contained in:
ポール ウェッブ 2019-02-13 17:30:04 -06:00
parent 6bddcc8ff2
commit 6e31652e4d

View file

@ -25,6 +25,8 @@ async function syncWithApi(data, socket) {
try {
let result = await got(`https://${apiUrl}/reward/new?github_token=${process.env.DEV_PROGRAM_OAUTH}&reward_type=github_developer&wallet_address=${data.address}`, { json: true });
// let result = await got(`https://${apiUrl}/reward/new?github_token=${data.code}&reward_type=github_developer&wallet_address=${data.address}`, { json: true }); // This SHOULD work but does not. `data.code` is what is received from GitHub when the developer is redirected back to .tech.
result = result.body.data;
return send(socket, {