fix: error返回

This commit is contained in:
yystopf 2025-06-24 14:21:33 +08:00
parent 6a7174781c
commit 9cb7a22e52
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Api::V1::Projects::Pulls::ReopenService < ApplicationService
end end
def call def call
raise Error, errors.full_messages.join(", ") unless valid? raise Error, "参数错误" unless valid?
if gitea_change_status if gitea_change_status
@pull_request.update_column(:status, PullRequest::OPEN) @pull_request.update_column(:status, PullRequest::OPEN)
@pull_request&.project_trends&.where(action_type: ProjectTrend::CLOSE).destroy_all @pull_request&.project_trends&.where(action_type: ProjectTrend::CLOSE).destroy_all