From cce3bc3092eb7cf56c2a6c68e9fd8980f5f1f26a Mon Sep 17 00:00:00 2001 From: nocodehummel Date: Sat, 23 Mar 2024 15:43:59 +0100 Subject: [PATCH] fix(job): stack trace limit (#2487) --- src/classes/job.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/job.ts b/src/classes/job.ts index 965aa8c79a..978671c222 100644 --- a/src/classes/job.ts +++ b/src/classes/job.ts @@ -1231,7 +1231,7 @@ export class Job< if (err?.stack) { this.stacktrace.push(err.stack); if (this.opts.stackTraceLimit) { - this.stacktrace = this.stacktrace.slice(0, this.opts.stackTraceLimit); + this.stacktrace = this.stacktrace.slice(-this.opts.stackTraceLimit); } }