田爽 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;
 		}