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 attendeeRepository = require(path.join(__dirname, "../attendee"));
const allAttendees = (req, res) => { const allAttendees = (req, res) => {
const isAdmin = req.isAuthenticated() || true; const isAdmin = req.isAuthenticated();
return attendeeRepository return attendeeRepository
.allAttendees(isAdmin) .allAttendees(isAdmin)

View File

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

View File

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