From 62eeda7007fe2f496f47beeeb4417245861600ec Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 11 Feb 2025 11:31:14 +0800 Subject: [PATCH] fix --- app/controllers/api/v1/projects/actions/actions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/projects/actions/actions_controller.rb b/app/controllers/api/v1/projects/actions/actions_controller.rb index ea4023941..b70e2fdf6 100644 --- a/app/controllers/api/v1/projects/actions/actions_controller.rb +++ b/app/controllers/api/v1/projects/actions/actions_controller.rb @@ -10,7 +10,7 @@ class Api::V1::Projects::Actions::ActionsController < Api::V1::Projects::Actions @result = [] @files.map{|i|i['name']}.each do |file| if @workflows.present? - next !@workflows.include?(file) + next if !@workflows.include?(file) end last_action_run = @action_runs.where(workflow_id: file).order(updated: :desc).first last_action_run_json = last_action_run.present? ? {