mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
fixed 流水线删除同时删除运行日志
This commit is contained in:
@@ -148,6 +148,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
|||||||
interactor = Gitea::DeleteFileInteractor.call(current_user.gitea_token, @owner.login, del_content_params(sha).merge(identifier: @project.identifier))
|
interactor = Gitea::DeleteFileInteractor.call(current_user.gitea_token, @owner.login, del_content_params(sha).merge(identifier: @project.identifier))
|
||||||
tip_exception(interactor.error) unless interactor.success?
|
tip_exception(interactor.error) unless interactor.success?
|
||||||
end
|
end
|
||||||
|
Gitea::ActionRun.where(repo_id: @pipeline.project.gpid).destroy_all
|
||||||
@pipeline.destroy!
|
@pipeline.destroy!
|
||||||
end
|
end
|
||||||
render_ok
|
render_ok
|
||||||
|
|||||||
Reference in New Issue
Block a user