Browse Source

知识库

田爽 1 năm trước cách đây
mục cha
commit
b7352ca39b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
 		}