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
+1 -1
View File
@@ -105,7 +105,7 @@ func ChangeCollaborationAccessMode(ctx context.Context, repo *Repository, uid in
return nil
}
return db.AutoTx(ctx, func(ctx context.Context) error {
return db.WithTx(ctx, func(ctx context.Context) error {
e := db.GetEngine(ctx)
collaboration := &Collaboration{