Skip to content

Commit

Permalink
fix(comms): wsLogaccess GetLogs results not sorted by default
Browse files Browse the repository at this point in the history
logs returned by the log engine don't seem to use a default sort, so
some default should be supplied in the request

Signed-off-by: Jeremy Clements <79224539+jeclrsg@users.noreply.github.com>
  • Loading branch information
jeclrsg committed Jun 14, 2024
1 parent 492a0c7 commit 0fcb7fb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/comms/src/services/wsLogaccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,14 @@ export class LogaccessService extends LogaccessServiceBase {
LogLineStartFrom: request.LogLineStartFrom ?? 0,
LogLineLimit: request.LogLineLimit ?? 100,
SelectColumnMode: WsLogaccess.LogSelectColumnMode.DEFAULT,
Format: "JSON"
Format: "JSON",
SortBy: {
SortCondition: [{
BySortType: WsLogaccess.SortColumType.ByDate,
ColumnName: "",
Direction: 0
}]
}
};

const filters: WsLogaccess.leftFilter[] = [];
Expand Down

0 comments on commit 0fcb7fb

Please sign in to comment.