]> git.localhorst.tv Git - alttp.git/commitdiff
do not award records for forfeits
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Mar 2022 11:16:30 +0000 (12:16 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 25 Mar 2022 11:16:30 +0000 (12:16 +0100)
app/Models/User.php

index 89493e70171cdec6eefeea22e70f4bc1c9f342dd..eea1426d8fcc7c592aca5592b5a2ef70f7765253 100644 (file)
@@ -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);
        }