everydaycats commited on
Commit
ca39894
·
verified ·
1 Parent(s): 1dee96d

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +2 -2
app.js CHANGED
@@ -238,9 +238,9 @@ app.get('/cleanup', (req, res) => {
238
  }
239
  }
240
 
241
- // Also clean old temp keys (older than 10 mins)
242
  for (const [key, value] of tempKeys.entries()) {
243
- if (now - value.createdAt > (1000 * 60 * 10)) {
244
  tempKeys.delete(key);
245
  }
246
  }
 
238
  }
239
  }
240
 
241
+ // Also clean old temp keys (older than 4 mins)
242
  for (const [key, value] of tempKeys.entries()) {
243
+ if (now - value.createdAt > (1000 * 60 * 4)) {
244
  tempKeys.delete(key);
245
  }
246
  }