Skip to content

Commit

Permalink
fix: GitHub code function
Browse files Browse the repository at this point in the history
Signed-off-by: 0x73746F66 <[email protected]>
  • Loading branch information
0x73746F66 committed Jun 11, 2024
1 parent 67bb115 commit b5d6ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/github/install/[installation_id]/[code].js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function onRequestGet(context) {
client_secret: env.GITHUB_APP_CLIENT_SECRET
}).toString()
const resp = await fetch(url, { method })
const data = JSON.parse(resp.text())
const data = JSON.parse(await resp.text())
const info = await env.d1db.prepare('INSERT INTO integration_github (installation_id, memberEmail, access_key) VALUES (?1, ?2, ?3)')
.bind(token, session.memberEmail, data.access_token)
.run()
Expand Down

0 comments on commit b5d6ff6

Please sign in to comment.