change IsEffectiiveOrExpired to IsEffectiveAndNotExpired

This commit is contained in:
sbwalker
2024-07-23 07:08:26 -04:00
parent 8ca2f0a49f
commit 1cd4d6d0df
7 changed files with 11 additions and 11 deletions

View File

@ -80,7 +80,7 @@ namespace Oqtane.Infrastructure
if (page.ModifiedOn >= lastIndexedOn && !ignoreEntities.Contains(EntityNames.Page))
{
changed = true;
removed = page.IsDeleted || !Utilities.IsEffectiveOrExpired(page.EffectiveDate, page.ExpiryDate);
removed = page.IsDeleted || !Utilities.IsEffectiveAndNotExpired(page.EffectiveDate, page.ExpiryDate);
var searchContent = new SearchContent
{
@ -229,7 +229,7 @@ namespace Oqtane.Infrastructure
searchContent.AdditionalContent = string.Empty;
}
if (removed || pageModule.IsDeleted || !Utilities.IsEffectiveOrExpired(pageModule.EffectiveDate, pageModule.ExpiryDate))
if (removed || pageModule.IsDeleted || !Utilities.IsEffectiveAndNotExpired(pageModule.EffectiveDate, pageModule.ExpiryDate))
{
searchContent.IsDeleted = true;
}