|
|
@ -25,7 +25,7 @@ namespace NzbDrone.Core.Update.History
|
|
|
|
public UpdateHistory LastInstalled()
|
|
|
|
public UpdateHistory LastInstalled()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var history = Query(x => x.EventType == UpdateHistoryEventType.Installed)
|
|
|
|
var history = Query(x => x.EventType == UpdateHistoryEventType.Installed)
|
|
|
|
.OrderBy(v => v.Date)
|
|
|
|
.OrderByDescending(v => v.Date)
|
|
|
|
.Take(1)
|
|
|
|
.Take(1)
|
|
|
|
.FirstOrDefault();
|
|
|
|
.FirstOrDefault();
|
|
|
|
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ namespace NzbDrone.Core.Update.History
|
|
|
|
public UpdateHistory PreviouslyInstalled()
|
|
|
|
public UpdateHistory PreviouslyInstalled()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var history = Query(x => x.EventType == UpdateHistoryEventType.Installed)
|
|
|
|
var history = Query(x => x.EventType == UpdateHistoryEventType.Installed)
|
|
|
|
.OrderBy(v => v.Date)
|
|
|
|
.OrderByDescending(v => v.Date)
|
|
|
|
.Skip(1)
|
|
|
|
.Skip(1)
|
|
|
|
.Take(1)
|
|
|
|
.Take(1)
|
|
|
|
.FirstOrDefault();
|
|
|
|
.FirstOrDefault();
|
|
|
|