From 6e31652e4d8f924fe1ffba1d92d1a3a43c9867fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Wed, 13 Feb 2019 17:30:04 -0600 Subject: [PATCH] Note --- app/sockets.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/sockets.js b/app/sockets.js index 7afbedc..ce4ac1c 100644 --- a/app/sockets.js +++ b/app/sockets.js @@ -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, {