From 87a327d3d87a3839976bb11a37c67f134a7a7907 Mon Sep 17 00:00:00 2001 From: Teddy Roncin Date: Wed, 4 Oct 2023 17:44:29 +0200 Subject: [PATCH 1/4] fix: seed --- seed.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seed.sql b/seed.sql index 2f8e50c4..c54a7944 100644 --- a/seed.sql +++ b/seed.sql @@ -1,3 +1,4 @@ +/* INSERT INTO `items` (`id`, `name`, `category`, `attribute`, `price`, `reducedPrice`, `infos`, `image`, `stock`) VALUES ('ticket-player', 'Place joueur', 'ticket', NULL, 2500, 2000, NULL, NULL, NULL), ('ticket-player-ssbu', 'Place joueur (SSBU)', 'ticket', NULL, 2200, 1700, NULL, NULL, NULL), @@ -13,6 +14,7 @@ INSERT INTO `items` (`id`, `name`, `category`, `attribute`, `price`, `reducedPri ('tshirt-l', 'T-shirt UA 2022 (Unixese)', 'supplement', 'l', 1500, NULL, 'Un t-shirt souvenir de cette LAN de folie', 'tshirt.png', 30), ('tshirt-xl', 'T-shirt UA 2022 (Unixese)', 'supplement', 'xl', 1500, NULL, 'Un t-shirt souvenir de cette LAN de folie', 'tshirt.png', 30), ('pc', 'Location de PC', 'rent', NULL, 14000, NULL, 'Location de PC si tu ne peux pas amener le tien pendant l''UTT Arena. L''un des PC suivants sera mis à ta disposition :->AMD Ryzen 5 2600,16GB RAM SSD 500G° et 2060 ou 6600XT->INTEL I5 8500 16GB RAM SSD 500G° et 2060 ou 6600XT->AMD RYZEN 5 5600X 500G° SSD et 2060 ou 6600XT', NULL, 7); + */ INSERT INTO `settings` (`id`, `value`) VALUES ('login', 0), @@ -27,4 +29,5 @@ INSERT INTO `tournaments` (`id`, `name`, `maxPlayers`, `playersPerTeam`, `cashpr ('rl', 'Rocket League', 48, 3, 0), ('osu', 'Osu!', 48, 1, 0), ('tft', 'Teamfight Tactics', 32, 1, 0), -('open', 'Libre', 56, 1, 0); +('open', 'Libre', 56, 1, 0), +('pokemon', 'Pokémon', 24, 1, 0); \ No newline at end of file From eb8cad669aaff7d7ba6aaccd6fa8c90acec982ab Mon Sep 17 00:00:00 2001 From: Teddy Roncin Date: Thu, 5 Oct 2023 18:11:37 +0200 Subject: [PATCH 2/4] fix: removed valorant --- seed.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/seed.sql b/seed.sql index c54a7944..54f9797d 100644 --- a/seed.sql +++ b/seed.sql @@ -25,7 +25,6 @@ INSERT INTO `tournaments` (`id`, `name`, `maxPlayers`, `playersPerTeam`, `cashpr ('lol', 'League of Legends', 160, 5, 0), ('ssbu', 'SSBU', 128, 1, 0), ('csgo', 'Counter-Strike : Global Offensive', 80, 5, 0), -('valorant', 'Valorant', 80, 5, 0), ('rl', 'Rocket League', 48, 3, 0), ('osu', 'Osu!', 48, 1, 0), ('tft', 'Teamfight Tactics', 32, 1, 0), From 213e735d0b4fbbfcfc56be1521b0f9f001f74893 Mon Sep 17 00:00:00 2001 From: Teddy Roncin Date: Thu, 5 Oct 2023 18:26:53 +0200 Subject: [PATCH 3/4] fix: readded items in seed.sql because tests were not passing --- seed.sql | 2 -- 1 file changed, 2 deletions(-) diff --git a/seed.sql b/seed.sql index 54f9797d..0f78d706 100644 --- a/seed.sql +++ b/seed.sql @@ -1,4 +1,3 @@ -/* INSERT INTO `items` (`id`, `name`, `category`, `attribute`, `price`, `reducedPrice`, `infos`, `image`, `stock`) VALUES ('ticket-player', 'Place joueur', 'ticket', NULL, 2500, 2000, NULL, NULL, NULL), ('ticket-player-ssbu', 'Place joueur (SSBU)', 'ticket', NULL, 2200, 1700, NULL, NULL, NULL), @@ -14,7 +13,6 @@ INSERT INTO `items` (`id`, `name`, `category`, `attribute`, `price`, `reducedPri ('tshirt-l', 'T-shirt UA 2022 (Unixese)', 'supplement', 'l', 1500, NULL, 'Un t-shirt souvenir de cette LAN de folie', 'tshirt.png', 30), ('tshirt-xl', 'T-shirt UA 2022 (Unixese)', 'supplement', 'xl', 1500, NULL, 'Un t-shirt souvenir de cette LAN de folie', 'tshirt.png', 30), ('pc', 'Location de PC', 'rent', NULL, 14000, NULL, 'Location de PC si tu ne peux pas amener le tien pendant l''UTT Arena. L''un des PC suivants sera mis à ta disposition :->AMD Ryzen 5 2600,16GB RAM SSD 500G° et 2060 ou 6600XT->INTEL I5 8500 16GB RAM SSD 500G° et 2060 ou 6600XT->AMD RYZEN 5 5600X 500G° SSD et 2060 ou 6600XT', NULL, 7); - */ INSERT INTO `settings` (`id`, `value`) VALUES ('login', 0), From 79e2993e389f88bd47e62d6a946895f578eef4e7 Mon Sep 17 00:00:00 2001 From: Teddy Roncin Date: Thu, 5 Oct 2023 18:36:22 +0200 Subject: [PATCH 4/4] fix: a test in pdf.test.ts tried to create a team for the valorant tournament --- tests/utils/pdf.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/pdf.test.ts b/tests/utils/pdf.test.ts index 68c9275d..898b3ca9 100644 --- a/tests/utils/pdf.test.ts +++ b/tests/utils/pdf.test.ts @@ -17,7 +17,7 @@ describe('Tests the PDF utils', () => { }); let placeId = 0; - for (const tournamentId of ['lol', 'ssbu', 'csgo', 'valorant', 'rl', 'osu', 'tft', 'open']) { + for (const tournamentId of ['lol', 'ssbu', 'csgo', 'rl', 'osu', 'tft', 'open', 'pokemon']) { it(`should generate a PDF ticket for ${tournamentId}`, async () => { // Create a fake user and add it in a random team const team = await createFakeTeam({ tournament: tournamentId as string });