Add .dev.env & update basic logoutuser.ts & made a basic blur login
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run

system & also normal logging in broke  :(
This commit is contained in:
yuanhau 2025-06-05 12:03:05 +08:00
parent b8438f7f33
commit 4d49554a0e
7 changed files with 85 additions and 13 deletions

View file

@ -1,5 +1,5 @@
import sql from "~/server/components/postgres";
import CheckKidUnfriendlyContent from "~/components/checks/checkKidUnfriendlyContent";
import * as cheerio from "cheerio";
// Caching
@ -22,6 +22,13 @@ function cleanupCache() {
}
});
}
async function checks(title: string) {
const wordss = await pullWord();
const result = await CheckKidUnfriendlyContent(title, wordss);
checkResults.value.set(title, result);
console.log(title);
return result;
}
setInterval(cleanupCache, CACHE_DURATION);