diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-10-18 03:33:19 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2019-10-18 16:33:19 +0800 |
commit | 7c4c01c0fda90d94cf3785f27b505d9fc502fee6 (patch) | |
tree | 073304af25f97daf419932f795668e333923eab5 /routers | |
parent | d44053eeda9128fb2e8f74205db6b998e7820fa2 (diff) | |
download | gitea-7c4c01c0fda90d94cf3785f27b505d9fc502fee6.tar.gz gitea-7c4c01c0fda90d94cf3785f27b505d9fc502fee6.zip |
Fix review webhooks (#8570)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/pull_review.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/pull_review.go b/routers/repo/pull_review.go index 5eb0dfe9a7..7d030988fd 100644 --- a/routers/repo/pull_review.go +++ b/routers/repo/pull_review.go @@ -157,7 +157,7 @@ func SubmitReview(ctx *context.Context, form auth.SubmitReviewForm) { return } // No current review. Create a new one! - if review, err = models.CreateReview(models.CreateReviewOptions{ + if review, err = pull_service.CreateReview(models.CreateReviewOptions{ Type: reviewType, Issue: issue, Reviewer: ctx.User, @@ -169,7 +169,7 @@ func SubmitReview(ctx *context.Context, form auth.SubmitReviewForm) { } else { review.Content = form.Content review.Type = reviewType - if err = models.UpdateReview(review); err != nil { + if err = pull_service.UpdateReview(review); err != nil { ctx.ServerError("UpdateReview", err) return } |