diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/build_success_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/build_success_worker.rb b/app/workers/build_success_worker.rb index 4670cef1a58..9a865fea621 100644 --- a/app/workers/build_success_worker.rb +++ b/app/workers/build_success_worker.rb @@ -31,6 +31,6 @@ class BuildSuccessWorker ## # TODO: This should be processed in DeploymentSuccessWorker once we started storing `action` value in `deployments` records def stop_environment(build) - build.persisted_environment.stop + build.persisted_environment.fire_state_event(:stop) end end |