Skip to content

Commit

Permalink
chore: debug 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 a7870f3 commit 3c74263
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions functions/github/install/[installation_id]/[code].js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export async function onRequestGet(context) {
const resp = await fetch(url, { method }).catch(err => {
throw Error(err)
})
console.log('resp', resp)
const data = await resp.json()
console.log('data', data)
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
2 changes: 1 addition & 1 deletion src/pages/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const login = async () => {
if (state.email && state.password) {
const resp = await axios.get(`/login/${state.email}/${SHA1(state.password)}`)
.catch(console.log)
const data = resp.json()
const data = await resp.json()
localStorage.setItem('/member/email', state.email)
localStorage.setItem('/session/token', data.token)
router.push('/dashboard')
Expand Down

0 comments on commit 3c74263

Please sign in to comment.