self defined value tables - getters

This commit is contained in:
Julian Krauser 2024-09-04 14:01:22 +02:00
parent c85f23ed73
commit ddb355836a
28 changed files with 1067 additions and 0 deletions

View file

@ -25,3 +25,10 @@ router(app);
app.listen(SERVER_PORT, () => {
console.log(`listening on *:${SERVER_PORT}`);
});
import schedule from "node-schedule";
import RefreshCommandHandler from "./command/refreshCommandHandler";
const job = schedule.scheduleJob("0 0 * * *", async () => {
console.log(`running Cron at ${new Date()}`);
await RefreshCommandHandler.deleteExpired();
});