mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-12 22:47:12 +03:00
14 lines
366 B
TypeScript
14 lines
366 B
TypeScript
import { Logger } from "../utils/logger";
|
|
import { config } from "../config";
|
|
import DownvoteSegmentArchiveJob from "./downvoteSegmentArchiveJob";
|
|
|
|
export function startAllCrons (): void {
|
|
if (config?.crons?.enabled) {
|
|
Logger.info("Crons started");
|
|
|
|
DownvoteSegmentArchiveJob.start();
|
|
} else {
|
|
Logger.info("Crons dissabled");
|
|
}
|
|
}
|