diff options
Diffstat (limited to 'models/issues')
-rw-r--r-- | models/issues/review.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issues/review.go b/models/issues/review.go index 70aba0f94d..455bcda50a 100644 --- a/models/issues/review.go +++ b/models/issues/review.go @@ -620,7 +620,7 @@ func AddReviewRequest(ctx context.Context, issue *Issue, reviewer, doer *user_mo // skip it when reviewer hase been request to review if review != nil && review.Type == ReviewTypeRequest { - return nil, nil + return nil, committer.Commit() // still commit the transaction, or committer.Close() will rollback it, even if it's a reused transaction. } // if the reviewer is an official reviewer, |