Change bugs

This commit is contained in:
sylor_huang@126.com 2020-07-09 20:36:27 +08:00
parent e06a2ec0f0
commit 9e15f2c733
1 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@ class SyncForgeController < ApplicationController
project_params = { project_params = {
identifier: sync_params[:identifier], identifier: sync_params[:identifier],
user_id: project_user.id, user_id: project_user.id,
is_public: sync_params[:is_public] private: !sync_params[:is_public],
name: sync_params[:name]
} }
project = Projects::CreateService.new(project_user, project_params).call project = Projects::CreateService.new(project_user, project_params).call
if project.present? if project.present?
@ -26,7 +27,7 @@ class SyncForgeController < ApplicationController
end end
end end
rescue Exception => e rescue Exception => e
SyncLog.sync_log("=================has_errors:==#{e}") Rails.logger.info("=================has_errors:==#{e}")
end end
def sync_users def sync_users