b8a61d1a0e
Did a lot. Tested SSE & started on socket.io, should prob kill s.io replace w/ ws
2021-11-26 20:07:11 +01:00
704ed51db5
Prizedistribution wants winners w/ phone number.
2021-02-19 00:54:12 +01:00
6003151e3b
Better error handling for claim prize.
...
We wrap await function calls with try catch and return the res if any
error occur.
2021-02-18 20:58:57 +01:00
ab58a45da5
Better var name and response message text.
2021-02-18 20:58:40 +01:00
dcaaeae51f
Get prizes only returns wines without a winner already.
2021-02-18 20:58:09 +01:00
5e018f071d
Prize distribution for selecting wines.
...
Moved the same functionality out from lottery.js and simplified a bit.
Now the backend also sends with wines to pick from.
When hitting the controller we check that the user is the next user in
line.
2021-01-26 22:42:33 +01:00