Skip to content

Commit

Permalink
commented out Date query (for a 0.3.0 release)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendy committed Oct 12, 2018
1 parent ea0828c commit d48ace9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/Our.Umbraco.Look/Models/LookQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public class LookQuery
/// </summary>
public TagQuery TagQuery { get; set; } = new TagQuery();

/// <summary>
///
/// </summary>
public DateQuery DateQuery { get; set; } = new DateQuery();
///// <summary>
/////
///// </summary>
//public DateQuery DateQuery { get; set; } = new DateQuery();

///// <summary>
/////
Expand Down
16 changes: 8 additions & 8 deletions src/Our.Umbraco.Look/Services/LookSearchService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ public static IEnumerableWithTotal<LookMatch> Query(LookQuery lookQuery)
}
}

// Date
if (lookQuery.DateQuery != null && (lookQuery.DateQuery.After.HasValue || lookQuery.DateQuery.Before.HasValue))
{
query.And().Range(
LookConstants.DateField,
lookQuery.DateQuery.After.HasValue ? lookQuery.DateQuery.After.Value : DateTime.MinValue,
lookQuery.DateQuery.Before.HasValue ? lookQuery.DateQuery.Before.Value : DateTime.MaxValue);
}
//// Date
//if (lookQuery.DateQuery != null && (lookQuery.DateQuery.After.HasValue || lookQuery.DateQuery.Before.HasValue))
//{
// query.And().Range(
// LookConstants.DateField,
// lookQuery.DateQuery.After.HasValue ? lookQuery.DateQuery.After.Value : DateTime.MinValue,
// lookQuery.DateQuery.Before.HasValue ? lookQuery.DateQuery.Before.Value : DateTime.MaxValue);
//}

//// Name
//if (lookQuery.NameQuery != null)
Expand Down

0 comments on commit d48ace9

Please sign in to comment.