mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +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()
|
||||
{
|
||||
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