feat: add session expiry deletion script and scheduler

This commit is contained in:
wancat committed 2023-08-23 12:22:15 +08:00
1 parent 8e63284211
commit 22060070b9
8 files changed
+94 -3

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { removeExpired } from '../containers/expiryChecker.js'
import connectDB from '../db.js'
connectDB()
.then(removeExpired)
.then(() => {
process.exit(0)
})
.catch((err) => {
console.error(err)
process.exit(1)
})