Commit 97bf2401 authored by Shinya Maeda's avatar Shinya Maeda

Remove if from last_pipeline in entity

parent bd7d7759
...@@ -690,7 +690,7 @@ module API ...@@ -690,7 +690,7 @@ module API
expose :id expose :id
expose :description, :ref, :cron, :cron_timezone, :next_run_at, :active expose :description, :ref, :cron, :cron_timezone, :next_run_at, :active
expose :created_at, :updated_at, :deleted_at expose :created_at, :updated_at, :deleted_at
expose :last_pipeline, using: Entities::Pipeline, if: -> (pipeline_schedule, opts) { pipeline_schedule.last_pipeline.present? } expose :last_pipeline, using: Entities::Pipeline
expose :owner, using: Entities::UserBasic expose :owner, using: Entities::UserBasic
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment