change bugs

This commit is contained in:
sylor_huang@126.com 2020-07-09 20:37:43 +08:00
parent 97844c47d7
commit c6c7f0968b
1 changed files with 2 additions and 2 deletions

View File

@ -6,11 +6,11 @@ class SyncForgeController < ApplicationController
sync_params = params[:sync_params]
#以前已同步的项目,那么肯定存在仓库
if Project.exists?(id: sync_params[:id], identifier: sync_params[:identifier])
SyncLog.sync_log("=================begin_to_update_project========")
Rails.logger.info("=================begin_to_update_project========")
project = Project.find_by(id: sync_params[:id])
check_sync_project(project, sync_params)
else #新建项目
SyncLog.sync_log("=================begin_to_create_new_project========")
Rails.logger.info("=================begin_to_create_new_project========")
project_user = User.where(login: sync_params[:owner_login]).first
project_params = {
identifier: sync_params[:identifier],