aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/HighlightTimelineService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-17 23:44:40 +0800
committercrupest <crupest@outlook.com>2020-12-17 23:44:40 +0800
commit5cbc306fc82bf14157ced4ff8b935191d20dae5d (patch)
treef5ce5a6ffebab52a4a990faa0d12937244cc3185 /BackEnd/Timeline/Services/HighlightTimelineService.cs
parentb9e55a05730cf4ede8dd5bd7a6f9befe5bc3580e (diff)
downloadtimeline-5cbc306fc82bf14157ced4ff8b935191d20dae5d.tar.gz
timeline-5cbc306fc82bf14157ced4ff8b935191d20dae5d.tar.bz2
timeline-5cbc306fc82bf14157ced4ff8b935191d20dae5d.zip
...
Diffstat (limited to 'BackEnd/Timeline/Services/HighlightTimelineService.cs')
-rw-r--r--BackEnd/Timeline/Services/HighlightTimelineService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Services/HighlightTimelineService.cs b/BackEnd/Timeline/Services/HighlightTimelineService.cs
index ea3e4c7e..b19efe21 100644
--- a/BackEnd/Timeline/Services/HighlightTimelineService.cs
+++ b/BackEnd/Timeline/Services/HighlightTimelineService.cs
@@ -108,13 +108,13 @@ namespace Timeline.Services
public async Task<List<TimelineInfo>> GetHighlightTimelines()
{
- var entities = await _database.HighlightTimelines.OrderBy(t => t.Order).Select(t => new { t.Id }).ToListAsync();
+ var entities = await _database.HighlightTimelines.OrderBy(t => t.Order).Select(t => new { t.TimelineId }).ToListAsync();
var result = new List<TimelineInfo>();
foreach (var entity in entities)
{
- result.Add(await _timelineService.GetTimelineById(entity.Id));
+ result.Add(await _timelineService.GetTimelineById(entity.TimelineId));
}
return result;