From: Daniel Karbach Date: Fri, 25 Mar 2022 11:16:30 +0000 (+0100) Subject: do not award records for forfeits X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=ce0c2752445b1d0960e331a335f56001f3c521c6;p=alttp.git do not award records for forfeits --- diff --git a/app/Models/User.php b/app/Models/User.php index 89493e7..eea1426 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -61,6 +61,7 @@ class User extends Authenticatable return $this->rounds() ->where('locked', true) ->where('no_record', false) + ->wherePivot('forfeit', false) ->wherePivot('placement', 1); } @@ -68,6 +69,7 @@ class User extends Authenticatable return $this->rounds() ->where('locked', true) ->where('no_record', false) + ->wherePivot('forfeit', false) ->wherePivot('placement', 2); } @@ -75,6 +77,7 @@ class User extends Authenticatable return $this->rounds() ->where('locked', true) ->where('no_record', false) + ->wherePivot('forfeit', false) ->wherePivot('placement', 3); }