Skip to content

Commit

Permalink
fix: use older js reverse method
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 30, 2025
1 parent 8e817b7 commit d8b01d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/handlers/queues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ 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).toReversed() : [];
const stacktrace = jobProps.stacktrace ? jobProps.stacktrace.filter(Boolean) : [];
stacktrace.reverse();

return {
id: jobProps.id,
Expand Down

0 comments on commit d8b01d9

Please sign in to comment.