From 6e989ff86ccf48316055ecbd1c07c506539ae7cf Mon Sep 17 00:00:00 2001 From: Ryahn Date: Mon, 3 Feb 2025 04:19:16 -0600 Subject: [PATCH] remove cron --- app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index eac292f..e7881b0 100644 --- a/app.js +++ b/app.js @@ -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) => {