Browse Source

revert back cron time for deleting links to 15 seconds

Pouria Ezzati 1 year ago
parent
commit
b478c614e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/cron.js

+ 1 - 1
server/cron.js

@@ -11,6 +11,6 @@ if (env.NON_USER_COOLDOWN) {
 }
 
 // check and delete links every minute
-cron.schedule("* * * * *", function() {
+cron.schedule("*/15 * * * * *", function() {
   query.link.batchRemove({ expire_in: ["<", utils.dateToUTC(new Date())] }).catch();
 });