fixed 导入失败的项目标记 project.status=0, 在列表中不显示

This commit is contained in:
2024-06-06 09:45:37 +08:00
parent 30a17f53b3
commit 9de04dba7e
3 changed files with 6 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ class Projects::ListQuery < ApplicationQuery
end
def main_collection
collection = Project.visible
collection = Project.visible.where(status: 1)
# 增加私有组织中项目过滤
collection = collection.joins("left join organization_extensions on organization_extensions.organization_id = projects.user_id")
.where("organization_extensions.visibility is null or organization_extensions.visibility in (0,1)")