|
@@ -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;
|
|
|
}
|
|
|
|