e76e814877
Always return success bool from getWinner endpoint
2020-10-11 22:21:02 +02:00
52dedd1e7c
Renamed all references to ballot to raffle.
2020-10-11 15:43:24 +02:00
1d714d1e5a
Removed router, refactored virtual functoinality.
...
- Removed the router from virtualRegistration so router.js handles routing
and virtualRegistration only exports functions.
- Refactored what code is in each of the virtual(Lottery/Registration)
files. /finish in Lottery now only sends update to all winners and
delegates sending to next winner in line, and setting timeout to
virtualRegistration.
- Better error handling and all responses from virtualRegistration has
message in json response.
2020-09-06 14:14:26 +02:00
fd17e11e87
Register io to all req with app.set('socketio').
2020-08-28 18:46:35 +02:00
51a7107802
Endpoints defined and exported as functions.
...
Changed all routes to functions and export them to app.js to handle the
registration of route using the functions exported from this file.
2020-08-28 18:45:33 +02:00
Kasper Rynning-Tønnesen
6e380c5f5c
Timeouts are nice
2020-04-17 16:29:19 +02:00
Kasper Rynning-Tønnesen
4051c04c91
token -> gatewayTokeng
2020-04-06 09:42:19 +02:00
Kasper Rynning-Tønnesen
40927ac286
Add sms capabilities, and online-fixing of everything
2020-04-04 01:05:52 +02:00
Kasper Rynning-Tønnesen
cd5612c9b9
Better saving
2020-03-26 16:18:34 +01:00
Kasper Rynning-Tønnesen
4060b7409e
Added more data from winner
2020-03-26 16:08:24 +01:00
7a12c929aa
Moved generator to a component RaffleGenerator.
...
Moved generator and added to virtuallottertyregistrationpage
Removed logic for generating random colors in backend.
2020-03-16 19:56:01 +01:00
1dea04b0b2
If no winner is found for color it redraws 3 times
...
Redraws three times if no winner is found.
Grammatical fixes.
2020-03-16 19:34:12 +01:00
Kasper Rynning-Tønnesen
81eeabfe42
Shuffling?
2020-03-14 14:43:56 +01:00
Kasper Rynning-Tønnesen
f398db4e42
Splitting more, added chat, and fancier draw-animations
2020-03-14 14:04:07 +01:00
Kasper Rynning-Tønnesen
35e736a9d9
Add update-event for winners/attendees
2020-03-13 17:13:04 +01:00
Kasper Rynning-Tønnesen
bfbfa5a8bc
Fixed so io is being sent in a better manner, and listening on the same port as the rest
2020-03-13 17:02:28 +01:00
Kasper Rynning-Tønnesen
b35dd5a971
Much virtual many lotteries
2020-03-13 16:37:08 +01:00