remove cron
This commit is contained in:
parent
4b634eff89
commit
6e989ff86c
16
app.js
16
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) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user