]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/User.php
do not award records for forfeits
[alttp.git] / 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);
        }