aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/mini_environments_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/mini_environments_controller.rb')
-rw-r--r--app/controllers/mini_environments_controller.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/mini_environments_controller.rb b/app/controllers/mini_environments_controller.rb
index 9b8a16c..837a503 100644
--- a/app/controllers/mini_environments_controller.rb
+++ b/app/controllers/mini_environments_controller.rb
@@ -133,7 +133,7 @@ class MiniEnvironmentsController < ApplicationController
end
end
- @mini_environment.backend.build(@mini_environment)
+ MiniEnvironmentJob.enqueue(@mini_environment.id, :build)
redirect_to @mini_environment
end
end
@@ -160,10 +160,7 @@ class MiniEnvironmentsController < ApplicationController
end
def jobs
- [
- MiniEnvironmentJob.jobs(@mini_environment.id),
- GovukGuix::BuildJob.jobs(@mini_environment.id)
- ].flatten
+ MiniEnvironmentJob.jobs(@mini_environment.id)
end
helper_method :jobs