|
@@ -458,7 +458,8 @@ namespace Hotline.Api.Controllers
|
|
|
}).ToList();
|
|
|
await _knowledgeRepository.Updateable(kns)
|
|
|
.UpdateColumns(d => d.IsPublic)
|
|
|
- .ExecuteCommandAsync(HttpContext.RequestAborted);
|
|
|
+ .Where(d => d.Status == EKnowledgeStatus.OnShelf)
|
|
|
+ .ExecuteCommandAsync(HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|