This commit is contained in:
ryanwong
2022-02-06 20:59:48 -05:00
parent fd17a4c720
commit 36307e22f9
68 changed files with 0 additions and 0 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();');
})();