1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-11 16:58:12 +00:00

Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song
2023-01-09 10:42:38 +08:00
committed by GitHub
15 changed files with 150 additions and 81 deletions

View File

@@ -2365,7 +2365,7 @@ func CountOrphanedIssues(ctx context.Context) (int64, error) {
// DeleteOrphanedIssues delete issues without a repo
func DeleteOrphanedIssues(ctx context.Context) error {
var attachmentPaths []string
err := db.AutoTx(ctx, func(ctx context.Context) error {
err := db.WithTx(ctx, func(ctx context.Context) error {
var ids []int64
if err := db.GetEngine(ctx).Table("issue").Distinct("issue.repo_id").