Skip to content

Commit 3cb4012

Browse files
committed
chore: rename field
1 parent 2e5ffa5 commit 3cb4012

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/api/src/bull-mq/error-handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ export const bullMQErrorHandler = (error: Error) => {
1212
export const workerFailedHandler = (job: Job, error: Error) => {
1313
logger.info(`🐂❌ BullMQ: ${job.name} - Erroed job #${job.id}`);
1414

15-
let extra = {};
15+
let errorExtra = {};
1616

1717
if (error instanceof BaseException) {
18-
extra = error.extensions?.extra as Record<string, unknown>;
18+
errorExtra = error.extensions?.extra as Record<string, unknown>;
1919
}
2020

2121
captureException(error, {
22-
extra: { jobId: job.id, jobName: job.name, jobData: job.data, ...extra },
22+
extra: { jobId: job.id, jobName: job.name, jobData: job.data, errorExtra },
2323
});
2424
};
2525

0 commit comments

Comments
 (0)