Skip to content

Commit

Permalink
fix: Remove a console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
stormalinblue committed May 29, 2018
1 parent f81c454 commit 625553e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/server/routes/mainRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ router.post("/import", upload.single("importedData"),

JSONResponse.Data(res, {});
await promisify(fs.unlink)(req.file.path);
}
));
})
);

router.get("/vote", checkIfImported, asyncMiddleware(async (req, res) => {
if (!req.session.locked) {
Expand Down Expand Up @@ -131,7 +131,9 @@ router.get(
pageTitle: "Select Polls",
currentURL: req.url,
formURL: "/setPolls",
election: election
election: election,
submitBtnText: "Begin voting",
submitBtnIcon: "fas fa-angle-double-right"
});
}));

Expand All @@ -141,7 +143,6 @@ router.get(
lockMiddleware,
asyncMiddleware(async (req, res) => {
const pollIDs: string[] = req.query.pollIDs;
console.log(pollIDs);
const election = await db.getElection();
await Promise.all(election.polls.map(
(pollData) => {
Expand Down

0 comments on commit 625553e

Please sign in to comment.