田爽 1 năm trước cách đây
mục cha
commit
df4ed43563
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

@@ -1068,7 +1068,7 @@ namespace Hotline.Api.Controllers
 				.WhereIF(!string.IsNullOrEmpty(dto.Keyword),x=>x.Knowledge.Title.Contains(dto.Keyword!)||( x.Knowledge.Summary != null &&  x.Knowledge.Summary.Contains(dto.Keyword!)))
 				.Where(x=>x.CreatorId == _sessionContext.UserId)
 				.Where(x => !string.IsNullOrEmpty(x.Knowledge.Id))
-				.Where(x=>x.Collect.HasValue && x.Collect.Value)
+				.Where(x=> x.Collect!.Value)
 				.OrderByDescending(x => x.CreationTime)
 				.ToPagedListAsync(dto.PageIndex, dto.PageSize, HttpContext.RequestAborted);
 			return new PagedDto<KnowledgeCollectDto>(total,_mapper.Map<IReadOnlyList<KnowledgeCollectDto>>(items));