From 2c074c75e47ee775755acdbbdf28d87cb2beb134 Mon Sep 17 00:00:00 2001 From: Marc Hyeler Date: Tue, 13 Aug 2024 12:49:46 -0700 Subject: [PATCH] add auto release scheduler --- app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index 0e458a5..8148a0d 100644 --- a/app.js +++ b/app.js @@ -13,6 +13,7 @@ import passport from 'passport'; import session from 'express-session'; import connectSqlite3 from 'connect-sqlite3'; import cors from 'cors'; +import {scheduleAutoRelease} from "./services/admin/scheduleRelease.js"; const SQLiteStore = connectSqlite3(session); @@ -69,9 +70,12 @@ await addRootUsers(); // setup json configs in db await setDefaultConfigs(); -//start the verification queue scheduler +// start the verification queue scheduler scheduleVerificationJob(); +// start auto release scheduler +scheduleAutoRelease(); + // Start the server app.listen(3000, () => { console.log(`Locker backend started`);