fix: 修复 Vercel 部署时的 TypeScript 类型和 ESLint 错误

- 修复 prisma/seed.ts 中显式连接表的类型错误
- 将 webhook 路由中的 console.log 改为 console.warn
- 添加非空断言修复 badges.ts 中的类型错误

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-01-10 12:38:44 +08:00
co-authored by Claude
parent f41d97bf1a
commit 2fe86f6818
4 changed files with 28 additions and 14 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ export function parseGitHubUrl(url: string): { owner: string; repo: string } | n
for (const pattern of patterns) {
const match = url.match(pattern)
if (match) {
const repo = match[2].replace(/\.git$/, '').replace(/\/$/, '')
return { owner: match[1], repo }
const repo = match[2]!.replace(/\.git$/, '').replace(/\/$/, '')
return { owner: match[1]!, repo }
}
}