Update cleanup cron from 1h > 10m
This commit is contained in:
parent
69e54212f3
commit
c26d930b91
2
app.js
2
app.js
@ -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');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user