连接ci数据库名修改,根据repo

This commit is contained in:
moshenglv
2021-01-20 13:52:30 +08:00
parent ab3242569d
commit ab4af170fb
2 changed files with 3 additions and 1 deletions

View File

@@ -63,6 +63,7 @@ class Ci::BaseController < ApplicationController
if current.ci_cloud_account.server_type == Ci::CloudAccount::SERVER_TYPE_TRUSTIE
connect_to_trustie_ci_database(options)
else
options = options.merge(db_name: current.login)
connect_to_ci_database(options)
end