Skip to content

Commit

Permalink
fix: reverse array to display recent errors (#886)
Browse files Browse the repository at this point in the history
this allows users to view the most recent errors in the ui and avoid scrolling all the way down

Co-authored-by: ahmad anwar <[email protected]>
  • Loading branch information
ahnwarez and ahnwarez authored Jan 30, 2025
1 parent 4d12e12 commit 0e67d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/handlers/queues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { BaseAdapter } from '../queueAdapters/base';
export const formatJob = (job: QueueJob, queue: BaseAdapter): AppJob => {
const jobProps = job.toJSON();

const stacktrace = jobProps.stacktrace ? jobProps.stacktrace.filter(Boolean) : [];
const stacktrace = jobProps.stacktrace ? jobProps.stacktrace.filter(Boolean).toReversed() : [];

return {
id: jobProps.id,
Expand Down

0 comments on commit 0e67d96

Please sign in to comment.