docs: #285 a probable fix for a strange situation

This commit is contained in:
Hamid Reza Mohammadi 2022-03-03 20:06:43 +03:30
parent 058c8296b1
commit 5a175d25b7

View File

@ -116,7 +116,7 @@ namespace RMuseum.Services.Implementation
{
return new RServiceResult<FAQItem[]>
(
await _context.FAQItems.Where(c => c.Pinned && (onlyPublished == false || c.Published == true)).OrderBy(c => c.PinnedItemOrder).ToArrayAsync()
await _context.FAQItems.Where(c => c.Pinned && (c.Published == onlyPublished || c.Published == true)).OrderBy(c => c.PinnedItemOrder).ToArrayAsync()
);
}
@ -130,7 +130,7 @@ namespace RMuseum.Services.Implementation
{
return new RServiceResult<FAQItem[]>
(
await _context.FAQItems.Where(c => c.CategoryId == categoryId && (onlyPublished == false || c.Published == true)).OrderBy(c => c.ItemOrderInCategory).ToArrayAsync()
await _context.FAQItems.Where(c => c.CategoryId == categoryId && (c.Published == onlyPublished || c.Published == true)).OrderBy(c => c.ItemOrderInCategory).ToArrayAsync()
);
}