/** * Copyright (c) 2026 Niolla * All rights reserved. * * This source code is proprietary and confidential. * Unauthorized copying, modification, distribution, or use * of this file, via any medium, is strictly prohibited. */ // cron/index.js const startCleanInactiveNotificationsCron = require("./notificationCleaning.cron"); function startAllCrons() { console.log("Starting Cron Jobs..."); const tasks = [startCleanInactiveNotificationsCron()]; return async () => { for (const task of tasks) { task.stop(); if (typeof task.destroy === "function") task.destroy(); } }; } module.exports = startAllCrons;