phase 1 rework

This commit is contained in:
admin_rb committed 2026-10-23 16:38:55 +02:00
1 parent 211bfd174d
commit 20054198f3
38 files changed
+5001 -1019

No files matched your search

+3 -17
View File
@@ -30,14 +30,7 @@ router.get("/status-data", queue.statusData);
// =======================
// CAPTCHA CLEAR
// =======================
router.post("/clear-captcha", async (req, res) => {
const db = await getDb();
await db
.collection("settings")
.updateOne({ _id: "global" }, { $set: { captcha_blocked: false } });
// Redirect to status, controller fetches everything
res.redirect("/status");
});
router.post("/clear-captcha", queue.clearCaptcha);
router.post("/clear-failed", async (req, res) => {
const db = await getDb();
@@ -59,15 +52,8 @@ router.post("/clear-done", async (req, res) => {
res.redirect("/status");
});
router.post("/clear-processing", async (req, res) => {
const db = await getDb();
await db
.collection("queue")
.updateMany({}, { $unset: { "processing": ""}})
// Redirect to status, controller fetches everything
res.redirect("/status");
});
// Keep the legacy URL, but never release a job that may still have a live child process.
router.post("/clear-processing", queue.clearProcessing);
router.post("/clear-queued", async (req, res) => {
const db = await getDb();