Spaces:
Running
Running
Update app.js
Browse files
app.js
CHANGED
|
@@ -238,9 +238,9 @@ app.get('/cleanup', (req, res) => {
|
|
| 238 |
}
|
| 239 |
}
|
| 240 |
|
| 241 |
-
// Also clean old temp keys (older than
|
| 242 |
for (const [key, value] of tempKeys.entries()) {
|
| 243 |
-
if (now - value.createdAt > (1000 * 60 *
|
| 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 |
}
|