Some semicolon fix
This commit is contained in:
parent
a0027768f8
commit
34b95fe822
4 changed files with 4 additions and 4 deletions
2
app.js
2
app.js
|
@ -19,7 +19,7 @@ let app = express();
|
|||
let sess = {
|
||||
secret: process.env.NODE_ENV === "test" ? "Keyboard Cat" : require("./config/config.json").secret,
|
||||
cookie: {}
|
||||
}
|
||||
};
|
||||
|
||||
if (app.get("env") === "production") {
|
||||
app.set("trust proxy", 1);
|
||||
|
|
|
@ -20,6 +20,6 @@ document.querySelectorAll(".department").forEach(e => collapse(e, "user"));
|
|||
|
||||
document.querySelectorAll(".user").forEach(e => collapse(e, "order"));
|
||||
|
||||
document.querySelectorAll(".order").forEach(e => collapse(e, "sandwich"))
|
||||
document.querySelectorAll(".order").forEach(e => collapse(e, "sandwich"));
|
||||
|
||||
date.addEventListener("change", () => window.location.href = "?date="+date.value);
|
||||
|
|
|
@ -20,7 +20,7 @@ router.get("/", sessionCheck(2), async (req, res) => {
|
|||
commands[i.Command.DepartmentName][name] = {};
|
||||
|
||||
if (!(i.Command.id in commands[i.Command.DepartmentName][name]))
|
||||
commands[i.Command.DepartmentName][name][i.Command.id] = []
|
||||
commands[i.Command.DepartmentName][name][i.Command.id] = [];
|
||||
commands[i.Command.DepartmentName][name][i.Command.id].push(i);
|
||||
}
|
||||
res.render("commands", {title: "SOD - Commands", user: req.session.user, commands: commands, date: date});
|
||||
|
|
|
@ -4,7 +4,7 @@ const models = require("../models");
|
|||
|
||||
router.get("/", async (req, res) => {
|
||||
if (req.session.user)
|
||||
res.redirect("/")
|
||||
res.redirect("/");
|
||||
else
|
||||
res.render("login", { title: "SOD - Login" });
|
||||
})
|
||||
|
|
Reference in a new issue