Depreciate dbinit - moved functionailty to db-manager
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
f2bd261414
commit
fdf489ccf9
4
app.js
4
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;
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user