2014-06-10 11:07:52 -04:00
|
|
|
module Milestones
|
|
|
|
class CloseService < Milestones::BaseService
|
|
|
|
def execute(milestone)
|
2017-07-07 11:08:49 -04:00
|
|
|
if milestone.close && milestone.is_project_milestone?
|
2014-06-10 11:07:52 -04:00
|
|
|
event_service.close_milestone(milestone, current_user)
|
|
|
|
end
|
|
|
|
|
|
|
|
milestone
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|