1
0
silverbullet/plugbox/cron.ts
2022-03-21 15:21:34 +01:00

12 lines
249 B
TypeScript

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();
}