Fixed 267U.pre2

This commit is contained in:
2026-07-26 18:25:37 +09:00
parent 50bfaeafdf
commit 317d00a284
1286 changed files with 80222 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
// TODO: 消したい
const interval = 30 * 60 * 1000;
import { AttestationChallenges } from "../models/index.js";
import { LessThan } from "typeorm";
/**
* Clean up database occasionally
*/ export default function() {
async function tick() {
await AttestationChallenges.delete({
createdAt: LessThan(new Date(new Date().getTime() - 5 * 60 * 1000))
});
}
tick();
setInterval(tick, interval);
}