Skip to content

Commit e1434d9

Browse files
committed
Merge branch 'lunny/db_in_transaction' of github.com:lunny/gitea into lunny/db_in_transaction
2 parents 2a634fc + 406a049 commit e1434d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ func (pr *PullRequest) SetMerged(ctx context.Context) (bool, error) {
498498

499499
// NewPullRequest creates new pull request with labels for repository.
500500
func NewPullRequest(outerCtx context.Context, repo *repo_model.Repository, issue *Issue, labelIDs []int64, uuids []string, pr *PullRequest) (err error) {
501-
ctx, committer, err := db.TxContext(db.DefaultContext)
501+
ctx, committer, err := db.TxContext(outerCtx)
502502
if err != nil {
503503
return err
504504
}

0 commit comments

Comments
 (0)