mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-14 21:06:29 +00:00
Release repository - Sort by date in memory
This commit is contained in:
1 parent
d7c776323c
commit
ff0ad99b4a
1 file changed
+1
-1
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user