1
0
Fork 0
forked from forgejo/forgejo

Adjust transaction handling via db.Context (#20031)

This commit is contained in:
Lunny Xiao 2022-06-20 20:38:58 +08:00 committed by GitHub
parent cb50375e2b
commit 0649c54275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 42 deletions

View file

@ -229,7 +229,7 @@ func UpdateRepository(ctx context.Context, repo *repo_model.Repository, visibili
}
// Create/Remove git-daemon-export-ok for git-daemon...
if err := CheckDaemonExportOK(db.WithEngine(ctx, e), repo); err != nil {
if err := CheckDaemonExportOK(ctx, repo); err != nil {
return err
}