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
|
// 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) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user