Skip to content

Commit

Permalink
fix(log): sort log in descending order (by timestamp)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerni10 authored and burgerni10 committed Dec 30, 2022
1 parent 0b012d3 commit 688d7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web-server/controllers/log.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const getLogsEndpoint = (ctx) => {
const verbosity = ctx.query.verbosity?.replace(/[[\]]/g, '').split(',') || 'info'
const scope = ctx.query.scope || ''
const textMessage = ctx.query.textMessage || ''
const sorting = LOG_SORTING_VALUES.includes(ctx.query.sorting) ? ctx.query.sorting : 'ASC'
const sorting = LOG_SORTING_VALUES.includes(ctx.query.sorting) ? ctx.query.sorting : 'DESC'
const pageNumber = ctx.query.pageNumber || LOG_DEFAULT_PAGE
const pageSize = LOG_DEFAULT_PAGE_SIZE

Expand Down

0 comments on commit 688d7e0

Please sign in to comment.