Browse Source

fix(logging): increase the default value for the sorting field

pull/350/head
cKey 4 years ago
parent
commit
5c69e70f7f
  1. 1
      aspnet-core/modules/logging/LINGYUN.Abp.Logging.Serilog.Elasticsearch/LINGYUN/Abp/AuditLogging/Serilog/Elasticsearch/SerilogElasticsearchLoggingManager.cs

1
aspnet-core/modules/logging/LINGYUN.Abp.Logging.Serilog.Elasticsearch/LINGYUN/Abp/AuditLogging/Serilog/Elasticsearch/SerilogElasticsearchLoggingManager.cs

@ -150,6 +150,7 @@ namespace LINGYUN.Abp.Logging.Serilog.Elasticsearch
var sortOrder = !sorting.IsNullOrWhiteSpace() && sorting.EndsWith("desc", StringComparison.InvariantCultureIgnoreCase)
? SortOrder.Descending : SortOrder.Ascending;
sorting = sorting ?? "timestamp";
var querys = BuildQueryDescriptor(
startTime,

Loading…
Cancel
Save