Skip to content

Commit 0e67d96

Browse files
authored
fix: reverse array to display recent errors (#886)
this allows users to view the most recent errors in the ui and avoid scrolling all the way down Co-authored-by: ahmad anwar <7552088+AhmedAnwarHafez@users.noreply.github.com>
1 parent 4d12e12 commit 0e67d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/src/handlers/queues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { BaseAdapter } from '../queueAdapters/base';
1414
export const formatJob = (job: QueueJob, queue: BaseAdapter): AppJob => {
1515
const jobProps = job.toJSON();
1616

17-
const stacktrace = jobProps.stacktrace ? jobProps.stacktrace.filter(Boolean) : [];
17+
const stacktrace = jobProps.stacktrace ? jobProps.stacktrace.filter(Boolean).toReversed() : [];
1818

1919
return {
2020
id: jobProps.id,

0 commit comments

Comments
 (0)