fix 更新创建版本库条件

This commit is contained in:
jasder 2021-07-16 10:24:27 +08:00
parent a1b18c07df
commit 4494cbe3a9
2 changed files with 4 additions and 3 deletions

View File

@ -234,7 +234,9 @@ class RepositoriesController < ApplicationController
end
if sonarqube
sonarqube.update(bug_num: 0, loophole: 0, repetition_rate: 0, file_num: file_num)
sonarqube.update(bug_num: 0, loophole: 0, repetition_rate: 0, file_num: file_num, created_at: Time.now)
sleep 3.seconds
sonarqube.update_column(:updated_at, Time.now)
else
@project.sonarqubes.create!(
branch_name: branch['name'],

View File

@ -25,8 +25,7 @@ class Gitea::Repository::CreateService < Gitea::ClientService
private
def request_params
create_params = params.merge(readme: "readme")
Hash.new.merge(token: token, data: create_params)
Hash.new.merge(token: token, data: params)
end
def url