mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-23 19:55:09 -04:00
use Id instead of time to sort logs to take advantage of built in index.
This commit is contained in:
1 parent
add4c38589
commit
aa2c96ec7d
1 file changed
+6
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user