Merge branch 'main' into feature/bots

This commit is contained in:
Jason Song authored and GitHub committed 2023-01-09 10:42:38 +08:00
commit 5e9d4f7b9c
15 files changed
+150 -81

No files matched your search

+1 -1
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").