]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Result.php
chat adlib prototype
[alttp.git] / app / Models / Result.php
index c672a6a780856b1222b5e4e5ac6f7cb7ef93aa6b..229ac4b9c8e418c5d52cf9de99c33e07122eaf26 100644 (file)
@@ -37,7 +37,7 @@ class Result extends Model
                return static::compareUsername($a, $b);
        }
 
-       public static function compareUsername(Participant $a, Participant $b) {
+       public static function compareUsername(Result $a, Result $b) {
                return strcasecmp($a->user->username, $b->user->username);
        }
 
@@ -88,6 +88,7 @@ class Result extends Model
        protected $casts = [
                'forfeit' => 'boolean',
                'time' => 'double',
+               'user_id' => 'string',
        ];
 
        protected $appends = [