Fix bug for ctx usage (#26763)

Fix #26684 
Backport #26762
pull/26768/head
Lunny Xiao 1 year ago committed by GitHub
parent 307ee2c044
commit a1cec4141e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      services/pull/review.go

@ -334,9 +334,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
}

Loading…
Cancel
Save