Skip to content

Commit

Permalink
TNO-1535: Ensure Top Stories, Commentary pages... (#911)
Browse files Browse the repository at this point in the history
  • Loading branch information
CelloLiu authored Jul 18, 2023
1 parent 07f3da8 commit 3285a8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const TodaysCommentary: React.FC = () => {
contentTypes: [],
publishedStartOn: moment(filterAdvanced.startDate).toISOString(),
publishedEndOn: moment(filterAdvanced.endDate).toISOString(),
quantity: 100,
}).then((data) => setCommentary(data.items));
}, [findContent, filterAdvanced]);

Expand Down
1 change: 1 addition & 0 deletions app/subscriber/src/features/top-stories/TopStories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const TopStories: React.FC = () => {
contentTypes: [],
publishedStartOn: moment(filterAdvanced.startDate).toISOString(),
publishedEndOn: moment(filterAdvanced.endDate).toISOString(),
quantity: 100,
}).then((data) => setTopStories(data.items));
}, [findContent, filterAdvanced]);

Expand Down
3 changes: 3 additions & 0 deletions libs/net/dal/Models/ContentFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ public ContentFilter(Dictionary<string, StringValues> queryParams) : base(queryP
this.OwnerId = filter.GetIntNullValue(nameof(this.OwnerId));
this.UserId = filter.GetIntNullValue(nameof(this.UserId));

var quantity = filter.GetIntNullValue(nameof(Quantity));
if (quantity.HasValue) Quantity = quantity.Value;

this.CreatedOn = filter.GetDateTimeNullValue(nameof(this.CreatedOn));
this.CreatedStartOn = filter.GetDateTimeNullValue(nameof(this.CreatedStartOn));
this.CreatedEndOn = filter.GetDateTimeNullValue(nameof(this.CreatedEndOn));
Expand Down

0 comments on commit 3285a8a

Please sign in to comment.