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
Showing only changes of commit 704ed51db5 - Show all commits

View File

@@ -6,7 +6,7 @@ const winnerRepository = require(path.join(__dirname, "../winner"));
const message = require(path.join(__dirname, "../message"));
const start = async (req, res) => {
const allWinners = await winnerRepository.allWinners();
const allWinners = await winnerRepository.allWinners(true);
if (allWinners.length === 0) {
return res.status(503).send({
message: "No winners found to distribute prizes to.",