]> git.localhorst.tv Git - alttp.git/blobdiff - app/Http/Controllers/RoundController.php
open tournament type
[alttp.git] / app / Http / Controllers / RoundController.php
index 4938b3a04a0bac61c31ccd2d2ba49dd604d2209c..04e1b865ca0fb3560be7ac9231e5f998b3974897 100644 (file)
@@ -22,7 +22,9 @@ class RoundController extends Controller
                $tournament->loadMax('rounds', 'number');
 
                $round = Round::create([
+                       'game' => $tournament->game,
                        'number' => intval($tournament->rounds_max_number) + 1,
+                       'no_record' => $tournament->no_record,
                        'tournament_id' => $validatedData['tournament_id'],
                ]);
 
@@ -55,7 +57,7 @@ class RoundController extends Controller
 
                RoundChanged::dispatch($round);
 
-               $round->load('results');
+               $round->load(['results', 'results.user']);
 
                return $round->toJson();
        }
@@ -74,7 +76,7 @@ class RoundController extends Controller
 
                RoundChanged::dispatch($round);
 
-               $round->load('results');
+               $round->load(['results', 'results.user']);
 
                return $round->toJson();
        }
@@ -93,7 +95,7 @@ class RoundController extends Controller
 
                RoundChanged::dispatch($round);
 
-               $round->load('results');
+               $round->load(['results', 'results.user']);
 
                return $round->toJson();
        }