mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
Change bugs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user