From 6643d4b705c05c2b1935612da5adb6650d96090b Mon Sep 17 00:00:00 2001 From: Venix <30481900+venix12@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:38:27 +0100 Subject: [PATCH] use proper foreign key for season relationship --- app/Models/Multiplayer/Room.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Multiplayer/Room.php b/app/Models/Multiplayer/Room.php index 7619309d632..dfddc389186 100644 --- a/app/Models/Multiplayer/Room.php +++ b/app/Models/Multiplayer/Room.php @@ -265,7 +265,7 @@ public function season(): HasOneThrough return $this->hasOneThrough( Season::class, SeasonRoom::class, - 'id', + 'room_id', 'id', 'id', 'season_id',