diff --git a/src/index.ts b/src/index.ts index afb806d..563408d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,10 +6,10 @@ if (config.logging) { NLS(Logging, config.logging.server, config.logging.appid, config.logging.token); } -if (!config.database) { - Logging.error("No database config set. Terminating.") - process.exit(); -} +// if (!config.database) { +// Logging.error("No database config set. Terminating.") +// process.exit(); +// } if (!config.web) { Logging.error("No web config set. Terminating.") diff --git a/src/views/views.ts b/src/views/views.ts index 6f88144..2c7ba1c 100644 --- a/src/views/views.ts +++ b/src/views/views.ts @@ -19,7 +19,7 @@ Handlebars.registerHelper("appname", () => config.core.name); const cacheTime = moment.duration(1, "month").asSeconds(); const ViewRouter: IRouter = Router(); -ViewRouter.get("/", promiseMiddleware(UserMiddleware), (req, res) => { +ViewRouter.get("/", UserMiddleware, (req, res) => { res.send("This is the main page") })