From fdf489ccf910ee88a6def53ec89fa35694a9e41d Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 12 Feb 2023 20:59:05 +0000 Subject: [PATCH] Depreciate dbinit - moved functionailty to db-manager Signed-off-by: Fred Boniface --- app.js | 4 ---- src/utils/{dbinit.utils.js => DEP_dbinit.utils.js} | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) rename src/utils/{dbinit.utils.js => DEP_dbinit.utils.js} (95%) diff --git a/app.js b/app.js index db4ef92..33ba1a6 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,6 @@ const kubeRtr = require('./src/routes/kube.routes'); // /kube endpoints const findRtr = require('./src/routes/find.routes'); // /find endpoints const issueRtr = require('./src/routes/issue.routes') // /issue endpoints const statRtr = require('./src/routes/stats.routes'); // /stat endpoints -const initDb = require('./src/utils/dbinit.utils'); // DB Init Utility // Set Server Configurations const srvListen = process.env.OWL_SRV_LISTEN || "0.0.0.0" @@ -40,9 +39,6 @@ log.out(`app: Starting OwlBoard - Backend Version: ${version.app} - API versions // console.log("Unable to start, missing required vars") // exit app -// DB Init -initDb.init(); - // Express Error Handling: app.use((err, req, res, next) => { const statusCode = err.statuscode || 500; diff --git a/src/utils/dbinit.utils.js b/src/utils/DEP_dbinit.utils.js similarity index 95% rename from src/utils/dbinit.utils.js rename to src/utils/DEP_dbinit.utils.js index e4eac88..4f0ad7d 100644 --- a/src/utils/dbinit.utils.js +++ b/src/utils/DEP_dbinit.utils.js @@ -3,8 +3,8 @@ // check() : Checks data presence and age. // build() : Builds/Rebuilds collections. -const log = require('../utils/log.utils'); // Log Helper -const time = require('../utils/timeConvert.utils'); // Time Helper +const log = require('./log.utils'); // Log Helper +const time = require('./timeConvert.utils'); // Time Helper const corpus = require('../services/corpus.services'); const dbAccess = require('../services/dbAccess.services');