Feat/controllers - refactor entire backend and new admin interface #75

Merged
KevinMidboe merged 117 commits from feat/controllers into master 2021-02-19 00:19:52 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit f4a16bc417 - Show all commits

View File

@@ -2,7 +2,7 @@ const path = require("path");
const attendeeRepository = require(path.join(__dirname, "../attendee"));
const allAttendees = (req, res) => {
const isAdmin = req.isAuthenticated() || true;
const isAdmin = req.isAuthenticated();
return attendeeRepository
.allAttendees(isAdmin)

View File

@@ -97,7 +97,7 @@ const lotteryByDate = (req, res) => {
};
const allLotteries = (req, res) => {
const isAdmin = req.isAuthenticated() || true;
const isAdmin = req.isAuthenticated();
return lotteryRepository
.allLotteries(isAdmin)

View File

@@ -56,7 +56,7 @@ const addWinners = (req, res) => {
};
const allWinners = (req, res) => {
const isAdmin = req.isAuthenticated() || true;
const isAdmin = req.isAuthenticated();
return winnerRepository
.allWinners(isAdmin)