mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Fixed duplicate UpdateHistory items
(cherry picked from commit ad9e709d96a4c8635f52e9ee8623fa805e628de6)
This commit is contained in:
parent
e6c9bbfb8c
commit
4749d76147
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ namespace NzbDrone.Core.Update.History
|
|||
public UpdateHistory LastInstalled()
|
||||
{
|
||||
var history = Query(x => x.EventType == UpdateHistoryEventType.Installed)
|
||||
.OrderBy(v => v.Date)
|
||||
.OrderByDescending(v => v.Date)
|
||||
.Take(1)
|
||||
.FirstOrDefault();
|
||||
|
||||
|
@ -35,7 +35,7 @@ namespace NzbDrone.Core.Update.History
|
|||
public UpdateHistory PreviouslyInstalled()
|
||||
{
|
||||
var history = Query(x => x.EventType == UpdateHistoryEventType.Installed)
|
||||
.OrderBy(v => v.Date)
|
||||
.OrderByDescending(v => v.Date)
|
||||
.Skip(1)
|
||||
.Take(1)
|
||||
.FirstOrDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue