fix: Archive but save set winners as winners

If archiving a lottery, let archive-functionality circumvent SMS-service if the winners have been set on the archive page.
- Also remove unused file
This commit is contained in:
Kasper Rynning-Tønnesen
2021-03-25 20:15:38 +01:00
parent ea10f95a22
commit 59b4366ed5
6 changed files with 55 additions and 47 deletions

View File

@@ -33,7 +33,6 @@ const addWinnerWithWine = async (winner, wine) => {
wine: savedWine,
color: winner.color
};
if (exisitingWinner == undefined) {
const newWinner = new Winner({
name: winner.name,