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
cron.schedule('*/10 * * * *', async () => {
try {
await MessageService.cleanup();
console.log('Daily cleanup completed');
} catch (error) {
console.error('Cleanup failed:', error);
}
});
// cron.schedule('*/10 * * * *', async () => {
// try {
// await MessageService.cleanup();
// console.log('Daily cleanup completed');
// } catch (error) {
// console.error('Cleanup failed:', error);
// }
// });
app.get('/api/stats/total', (req, res) => {