aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-08-28 12:06:47 +0800
committerGitHub <noreply@github.com>2023-08-28 04:06:47 +0000
commit6945918d34ecc855c99bfc7d7773c3a2d60a3565 (patch)
treea3e35b0adc780ae951d35351d79695551e6dfc5c /services
parent67daa7bcb0cfd3cd7e5efa8667021a7e422f4bdf (diff)
downloadgitea-6945918d34ecc855c99bfc7d7773c3a2d60a3565.tar.gz
gitea-6945918d34ecc855c99bfc7d7773c3a2d60a3565.zip
Fix bug for ctx usage (#26762)
Regression from #26158 Fix #26684
Diffstat (limited to 'services')
-rw-r--r--services/pull/review.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/pull/review.go b/services/pull/review.go
index 58470142e1..6e088382f9 100644
--- a/services/pull/review.go
+++ b/services/pull/review.go
@@ -333,9 +333,9 @@ func DismissApprovalReviews(ctx context.Context, doer *user_model.User, pull *is
return err
}
- return db.WithTx(ctx, func(subCtx context.Context) error {
+ return db.WithTx(ctx, func(ctx context.Context) error {
for _, review := range reviews {
- if err := issues_model.DismissReview(subCtx, review, true); err != nil {
+ if err := issues_model.DismissReview(ctx, review, true); err != nil {
return err
}