Update cleanup cron from 1h > 10m

This commit is contained in:
Ryahn 2025-01-31 10:03:28 -05:00
parent 69e54212f3
commit c26d930b91

2
app.js
View File

@ -68,7 +68,7 @@ app.get('/twitter-card.svg', (req, res) => {
}); });
// Schedule cleanup job // Schedule cleanup job
cron.schedule('0 * * * *', async () => { cron.schedule('*/10 * * * *', async () => {
try { try {
await MessageService.cleanup(); await MessageService.cleanup();
console.log('Daily cleanup completed'); console.log('Daily cleanup completed');