fix(federation): 🐛 Show error for inbox failures

This commit is contained in:
Jesse Wierzbinski 2024-11-24 22:33:51 +01:00
parent d527947182
commit 50ebc12783
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -123,9 +123,9 @@ export default apiRoute((app) =>
}
});
inboxWorker.on("failed", (job) => {
inboxWorker.on("failed", (job, error) => {
if (job && job.id === result.id) {
reject(job.returnvalue);
reject(error);
}
});
});

View file

@ -204,5 +204,5 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
}
}
},
{ connection },
{ connection, removeOnComplete: { count: 0 } },
);