Note
This commit is contained in:
parent
6bddcc8ff2
commit
6e31652e4d
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ async function syncWithApi(data, socket) {
|
||||||
try {
|
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=${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;
|
result = result.body.data;
|
||||||
|
|
||||||
return send(socket, {
|
return send(socket, {
|
||||||
|
|
Loading…
Reference in a new issue