Change bugs
This commit is contained in:
parent
e06a2ec0f0
commit
9e15f2c733
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue