remove processing on fail, added clear failed

This commit is contained in:
DeSqBlocki committed 2025-12-06 18:42:40 +01:00
1 parent 1cdb2a5e9c
commit 81f8bc26e3
3 files changed
+38 -19

No files matched your search

+13 -4
View File
@@ -30,10 +30,19 @@ router.get("/status-data", queue.statusData);
// =======================
router.post("/clear-captcha", async (req, res) => {
const db = await getDb();
await db.collection("settings").updateOne(
{ _id: "global" },
{ $set: { captcha_blocked: false } }
);
await db
.collection("settings")
.updateOne({ _id: "global" }, { $set: { captcha_blocked: false } });
// Redirect to status, controller fetches everything
res.redirect("/status");
});
router.post("/clear-failed", async (req, res) => {
const db = await getDb();
await db
.collection("failed")
.deleteMany({}) //delete all
// Redirect to status, controller fetches everything
res.redirect("/status");
});