This commit is contained in:
ryanwong
2022-02-06 20:58:17 -05:00
parent 9ec9c8a4f7
commit fd17a4c720
14 changed files with 368 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
const db = require('../models');
(async function tokenCronJob() {
await db.query('UPDATE `token` SET status=0 WHERE `expire_at` < NOW();');
})();