FIX perfect ci init datbase

This commit is contained in:
Jasder
2020-09-22 15:50:16 +08:00
parent 7750ed18d7
commit 88b2dd1208
3 changed files with 20 additions and 12 deletions

View File

@@ -1,14 +1,14 @@
class Ci::CloudAccountsController < Ci::BaseController
include Ci::CloudAccountManageable
skip_before_action :connect_to_ci_database, only: %i[create bind]
before_action :load_project, only: %i[create activate]
before_action :authorize_owner_project!, only: %i[create activate]
before_action :load_repo, only: %i[activate]
before_action :find_cloud_account, only: %i[show]
before_action :validate_params!, only: %i[create bind]
before_action only: %i[create bind] do
master_db = true
connect_to_ci_database(master_db)
connect_to_ci_database(master_db: true)
end
def create