1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-07 15:23:48 +00:00

use Id instead of time to sort logs to take advantage of built in index.

This commit is contained in:
kay.one 2013-09-15 17:48:39 -07:00
parent add4c38589
commit aa2c96ec7d

View file

@ -17,6 +17,12 @@ public LogModule(ILogService logService)
private PagingResource<LogResource> GetLogs(PagingResource<LogResource> pagingResource)
{
var pageSpec = pagingResource.InjectTo<PagingSpec<Log>>();
if (pageSpec.SortKey == "time")
{
pageSpec.SortKey = "id";
}
return ApplyToPage(_logService.Paged, pageSpec);
}
}