mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
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
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:
parent
b8438f7f33
commit
4d49554a0e
7 changed files with 85 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue