diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-24 11:41:54 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-08-28 18:10:30 +0300 |
commit | dcd4ea473cab20eee05995ecaca043da98ca5a8d (patch) | |
tree | af1c7e0fb076cdc707bae65420419ac671e26b0a /lib/api/pipeline_schedules.rb | |
parent | f0f3f38576c0691e6d0e751c962382beea998afb (diff) |
Update remaining endpoints
Diffstat (limited to 'lib/api/pipeline_schedules.rb')
-rw-r--r-- | lib/api/pipeline_schedules.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/pipeline_schedules.rb b/lib/api/pipeline_schedules.rb index dbeaf9e17ef..e3123ef4e2d 100644 --- a/lib/api/pipeline_schedules.rb +++ b/lib/api/pipeline_schedules.rb @@ -117,8 +117,7 @@ module API not_found!('PipelineSchedule') unless pipeline_schedule authorize! :admin_pipeline_schedule, pipeline_schedule - status :accepted - present pipeline_schedule.destroy, with: Entities::PipelineScheduleDetails + destroy_conditionally!(pipeline_schedule) end end |