mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 10:13:30 +00:00
Release repository - Sort by date in memory
This commit is contained in:
parent
d7c776323c
commit
ff0ad99b4a
@ -23,6 +23,6 @@ public class ReleaseRepository(Func<ArtemisDbContext> getContext) : IReleaseRepo
|
|||||||
public ReleaseEntity? GetPreviousInstalledVersion()
|
public ReleaseEntity? GetPreviousInstalledVersion()
|
||||||
{
|
{
|
||||||
using ArtemisDbContext dbContext = getContext();
|
using ArtemisDbContext dbContext = getContext();
|
||||||
return dbContext.Releases.OrderByDescending(r => r.InstalledAt).Skip(1).FirstOrDefault();
|
return dbContext.Releases.AsEnumerable().OrderByDescending(r => r.InstalledAt).Skip(1).FirstOrDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user