remove cron

This commit is contained in:
Ryahn 2025-02-03 04:19:16 -06:00
parent 4b634eff89
commit 6e989ff86c

16
app.js
View File

@ -68,14 +68,14 @@ app.get('/twitter-card.svg', (req, res) => {
}); });
// Schedule cleanup job // Schedule cleanup job
cron.schedule('*/10 * * * *', async () => { // cron.schedule('*/10 * * * *', async () => {
try { // try {
await MessageService.cleanup(); // await MessageService.cleanup();
console.log('Daily cleanup completed'); // console.log('Daily cleanup completed');
} catch (error) { // } catch (error) {
console.error('Cleanup failed:', error); // console.error('Cleanup failed:', error);
} // }
}); // });
app.get('/api/stats/total', (req, res) => { app.get('/api/stats/total', (req, res) => {