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

@@ -87,6 +87,9 @@ router.get("/chat/history", chatController.getAllHistory);
router.delete("/chat/history", mustBeAuthenticated, chatController.deleteHistory);
router.post("/login", userController.login);
// We should have a check here if we are dev/prod,
// and disable the mustBeAuthentacted for the register
router.post("/register", mustBeAuthenticated, userController.register);
router.get("/logout", userController.logout);