mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
change chain
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
class PostChainJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
#注 pull_request的 api文档有问题,字段未明确,所以暂时关于pr的参数应该有问题。6-8,hs
|
||||
def perform(chain_params)
|
||||
status = false
|
||||
chain_type = chain_params[:type].to_s
|
||||
@@ -10,7 +9,7 @@ class PostChainJob < ApplicationJob
|
||||
if status
|
||||
break
|
||||
else
|
||||
response = Gitea::Chain::ChainPostService(chain_params)
|
||||
response = Gitea::Chain::ChainPostService.new(chain_params).call
|
||||
if response.status == 200
|
||||
reponse_body = response&.body
|
||||
messages = reponse_body.present? ? JSON.parse(reponse_body) : "success"
|
||||
|
||||
Reference in New Issue
Block a user