1
0
silverbullet/plugbox/cron.ts

12 lines
249 B
TypeScript
Raw Normal View History

2022-03-21 14:21:34 +00:00
import { System } from "./runtime";
import { CronHook } from "./types";
import cron from "node-cron";
export function cronSystem(system: System<CronHook>) {
let task = cron.schedule("* * * * *", () => {
});
// @ts-ignore
task.destroy();
}