mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
fixed 新建项目初始化项目标签不延时日志
This commit is contained in:
@@ -8,6 +8,7 @@ class UpdateProjectTopicJob < ApplicationJob
|
||||
return if project.blank?
|
||||
begin
|
||||
languages = $gitea_client.get_repos_languages_by_owner_repo(project.owner.login, project.identifier)
|
||||
puts "#{project.owner.login}/#{project.identifier} get_repos_languages:#{languages}"
|
||||
topic_count = 0
|
||||
if project.project_category_id.present?
|
||||
project_topic = ProjectTopic.find_or_create_by!(name: project.project_category.name.downcase)
|
||||
@@ -24,8 +25,8 @@ class UpdateProjectTopicJob < ApplicationJob
|
||||
topic_count +=1
|
||||
end
|
||||
end
|
||||
rescue
|
||||
|
||||
rescue => e
|
||||
puts "get_repos_languages: error:#{e.message}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user