Skip to content

Commit

Permalink
fix: table name
Browse files Browse the repository at this point in the history
  • Loading branch information
0x73746F66 committed Jun 15, 2024
1 parent ebdfbaa commit 042348c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/github/repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export async function onRequestGet(context) {
licenseSpdxId: repo.license?.spdx_id || '',
licenseName: repo.license?.name || '',
}
const info = await env.d1db.prepare('INSERT INTO github_apps (pk, fullName, createdAt, updatedAt, pushedAt, defaultBranch, ownerId, memberEmail, licenseSpdxId, licenseName, fork, template, archived, visibility, avatarUrl) VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15)')
const info = await env.d1db.prepare('INSERT INTO git_repos (pk, fullName, createdAt, updatedAt, pushedAt, defaultBranch, ownerId, memberEmail, licenseSpdxId, licenseName, fork, template, archived, visibility, avatarUrl) VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15)')
.bind(data.ghid, data.fullName, data.createdAt, data.updatedAt, data.pushedAt, data.defaultBranch, data.ownerId, session.memberEmail, data.licenseSpdxId, data.licenseName, data.fork, data.template, data.archived, data.visibility, data.avatarUrl)
.run()
console.log(`/github/repos github_apps ${data.fullName} kid=${token}`, info)
console.log(`/github/repos git_reposfix ${data.fullName} kid=${token}`, info)

const prefixBranches = `/github/${app.installationId}/branches/${repo.full_name}/`
data.branch = repo.default_branch
Expand Down

0 comments on commit 042348c

Please sign in to comment.