更改:导入失败提示以及更改消息模板422错误

This commit is contained in:
2024-06-04 16:55:06 +08:00
parent aa739a25b6
commit 4d0225e0d9
2 changed files with 6 additions and 8 deletions

View File

@@ -324,7 +324,7 @@ class ProjectsController < ApplicationController
@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
tip_exception("导入失败,请重试!")
return render_error("导入失败,请重试!")
end
# 为了缓存活跃项目的基本信息,后续删除
Cache::V2::ProjectCommonService.new(@project.id).read