mirror of
https://github.com/versia-pub/server.git
synced 2026-03-12 21:39:15 +01:00
fix(federation): 🐛 Show error for inbox failures
This commit is contained in:
parent
d527947182
commit
50ebc12783
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -204,5 +204,5 @@ export const inboxWorker = new Worker<InboxJobData, Response, InboxJobType>(
|
|||
}
|
||||
}
|
||||
},
|
||||
{ connection },
|
||||
{ connection, removeOnComplete: { count: 0 } },
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue