Commit 56226498 authored by Shinya Maeda's avatar Shinya Maeda

Use fire_state_event

parent 5f47ebaa
...@@ -31,6 +31,6 @@ class BuildSuccessWorker ...@@ -31,6 +31,6 @@ class BuildSuccessWorker
## ##
# TODO: This should be processed in DeploymentSuccessWorker once we started storing `action` value in `deployments` records # TODO: This should be processed in DeploymentSuccessWorker once we started storing `action` value in `deployments` records
def stop_environment(build) def stop_environment(build)
build.persisted_environment.stop build.persisted_environment.fire_state_event(:stop)
end end
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