forked from Trustie/forgeplus
fix: error返回
This commit is contained in:
parent
6a7174781c
commit
9cb7a22e52
|
@ -12,7 +12,7 @@ class Api::V1::Projects::Pulls::ReopenService < ApplicationService
|
|||
end
|
||||
|
||||
def call
|
||||
raise Error, errors.full_messages.join(", ") unless valid?
|
||||
raise Error, "参数错误" unless valid?
|
||||
if gitea_change_status
|
||||
@pull_request.update_column(:status, PullRequest::OPEN)
|
||||
@pull_request&.project_trends&.where(action_type: ProjectTrend::CLOSE).destroy_all
|
||||
|
|
Loading…
Reference in New Issue