mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-10 07:28:36 +02:00
fix: send response in queue retry
This commit is contained in:
@@ -51,6 +51,7 @@ router.post("/queue/:name/:repo_id", async (req, res) => {
|
|||||||
try {
|
try {
|
||||||
await job.remove();
|
await job.remove();
|
||||||
queue.add(job.name, job.data, job.opts);
|
queue.add(job.name, job.data, job.opts);
|
||||||
|
res.send("ok");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
res.status(500).send("error_retrying_job");
|
res.status(500).send("error_retrying_job");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user