2014-06-10 15:07:52 +00:00
|
|
|
module Milestones
|
|
|
|
class CloseService < Milestones::BaseService
|
|
|
|
def execute(milestone)
|
2017-08-24 16:37:37 +00:00
|
|
|
if milestone.close && milestone.project_milestone?
|
2014-06-10 15:07:52 +00:00
|
|
|
event_service.close_milestone(milestone, current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
milestone
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|