소스 검색

知识库

田爽 1 년 전
부모
커밋
b7352ca39b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Hotline.Api/Controllers/KnowledgeController.cs

+ 1 - 1
src/Hotline.Api/Controllers/KnowledgeController.cs

@@ -196,7 +196,7 @@ namespace Hotline.Api.Controllers
 		{
 			var count = await _knowledgeRepository.Queryable()
 				.WhereIF(!string.IsNullOrEmpty(dto.Id), x => x.Id != dto.Id)
-				.Where(x => x.Title == dto.Title).CountAsync();
+				.Where(x => x.Title == dto.Title && x.Status == EKnowledgeStatus.OnShelf).CountAsync();
 			return count > 0;
 		}