Browse Source

更改:移除-1提示

pull/347/head
yystopf 2 years ago
parent
commit
e8348194b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/projects_controller.rb

+ 2
- 2
app/controllers/projects_controller.rb View File

@@ -317,14 +317,14 @@ class ProjectsController < ApplicationController
UpdateProjectTopicJob.set(wait: 1.seconds).perform_later(project_id) if project_id.present?
Rails.logger.info "############ mirror status: #{@project&.repository&.mirror&.status} ############"
end
elsif !@project.common? && @project&.repository&.mirror&.failed?
# elsif !@project.common? && @project&.repository&.mirror&.failed?
# Rails.logger.info "############ mirror status: #{@project&.repository&.mirror&.status}"
# Gitea::Repository::DeleteService.new(@project.owner, @project.identifier,current_user.gitea_token).call
# @project.destroy!
# @project.forked_projects.update_all(forked_from_project_id: nil)
# # 如果该项目有所属的项目分类以及为私有项目,需要更新对应数量
# @project.project_category.decrement!(:private_projects_count, 1) if @project.project_category.present? && !@project.is_public
return render_error("导入失败,请重试!")
# return render_error("导入失败,请重试!")
end
# 为了缓存活跃项目的基本信息,后续删除
Cache::V2::ProjectCommonService.new(@project.id).read


Loading…
Cancel
Save