7 Commits

Author SHA1 Message Date
Kasper Rynning-Tønnesen
0e3c4d98e6 feat: Add tiny seed for 2 wines, and 2 users 2021-03-25 20:45:08 +01:00
7402fb7a7c Promise.all needs a list of promises. 2021-02-19 01:18:12 +01:00
9fd67a6bc3 Removed unused parameter. 2021-02-18 20:55:41 +01:00
a28a8ccacb When selecting prize, add winner to wine.
Changed the way we register a prize for winner.
Now we have a new prize_selected boolean field on a winner. This is
used to filter on when finding what winners have not selected a prize
yet. This also replaces the previous method of removing virtualWinners
after they selected a prize.

PrelotteryWine also get's a winner reference. This is used to filter on
when finding what prizes are left, and also makes it easier to
archive/register a lottery when the wine has a winner attached.
2021-02-18 20:50:30 +01:00
7292cf7983 Endpoint for getting wine schema.
This is for manual registration of prelottery wines from the admin page.
2021-02-15 22:38:22 +01:00
ac829052b6 Wine models now have extra year field. 2021-01-26 22:55:43 +01:00
b596dc28e8 Prelotterywine has it's own repo and ctrl. 2021-01-26 22:30:19 +01:00