Depreciate dbinit - moved functionailty to db-manager

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-02-12 20:59:05 +00:00
parent f2bd261414
commit fdf489ccf9
2 changed files with 2 additions and 6 deletions

4
app.js
View File

@ -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;

View File

@ -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');