From 71ad72b6d3db3937a2b769fe1d64c8bb99702ba1 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 18 Jun 2020 23:36:56 +0800 Subject: Add integrated tests. And fix a behavior. --- Timeline/Services/TimelineService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Timeline/Services/TimelineService.cs') diff --git a/Timeline/Services/TimelineService.cs b/Timeline/Services/TimelineService.cs index e0b1b51d..73f6c8ef 100644 --- a/Timeline/Services/TimelineService.cs +++ b/Timeline/Services/TimelineService.cs @@ -541,7 +541,7 @@ namespace Timeline.Services throw new ArgumentNullException(nameof(timelineName)); var timelineId = await FindTimelineId(timelineName); - var postEntities = await _database.TimelinePosts.OrderBy(p => p.Time).Where(p => p.TimelineId == timelineId && p.Content != null && p.LastUpdated > modifiedSince).ToListAsync(); + var postEntities = await _database.TimelinePosts.OrderBy(p => p.Time).Where(p => p.TimelineId == timelineId && p.Content != null && p.LastUpdated >= modifiedSince).ToListAsync(); var posts = new List(); foreach (var entity in postEntities) -- cgit v1.2.3