From 9e15f2c7333c88904d5217ef223e10606c422fd8 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 9 Jul 2020 20:36:27 +0800 Subject: [PATCH] Change bugs --- app/controllers/sync_forge_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/sync_forge_controller.rb b/app/controllers/sync_forge_controller.rb index 51193a0ca..1353e7aa3 100644 --- a/app/controllers/sync_forge_controller.rb +++ b/app/controllers/sync_forge_controller.rb @@ -15,7 +15,8 @@ class SyncForgeController < ApplicationController project_params = { identifier: sync_params[:identifier], 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 if project.present? @@ -26,7 +27,7 @@ class SyncForgeController < ApplicationController end end rescue Exception => e - SyncLog.sync_log("=================has_errors:==#{e}") + Rails.logger.info("=================has_errors:==#{e}") end def sync_users