Fixing two smalll bugs

This commit is contained in:
Fabian Stamm 2018-11-06 21:00:55 +01:00
parent ac69e73344
commit f86b59e5bc
2 changed files with 5 additions and 5 deletions

View File

@ -6,10 +6,10 @@ if (config.logging) {
NLS(Logging, config.logging.server, config.logging.appid, config.logging.token); NLS(Logging, config.logging.server, config.logging.appid, config.logging.token);
} }
if (!config.database) { // if (!config.database) {
Logging.error("No database config set. Terminating.") // Logging.error("No database config set. Terminating.")
process.exit(); // process.exit();
} // }
if (!config.web) { if (!config.web) {
Logging.error("No web config set. Terminating.") Logging.error("No web config set. Terminating.")

View File

@ -19,7 +19,7 @@ Handlebars.registerHelper("appname", () => config.core.name);
const cacheTime = moment.duration(1, "month").asSeconds(); const cacheTime = moment.duration(1, "month").asSeconds();
const ViewRouter: IRouter<void> = Router(); const ViewRouter: IRouter<void> = Router();
ViewRouter.get("/", promiseMiddleware(UserMiddleware), (req, res) => { ViewRouter.get("/", UserMiddleware, (req, res) => {
res.send("This is the main page") res.send("This is the main page")
}) })