X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FResult.php;h=229ac4b9c8e418c5d52cf9de99c33e07122eaf26;hb=8645b77ea2dc402f0265e1c8022ba18302506ca1;hp=c672a6a780856b1222b5e4e5ac6f7cb7ef93aa6b;hpb=537b998e8059c56e3a20ee2a89d42c3bbfbb80b8;p=alttp.git diff --git a/app/Models/Result.php b/app/Models/Result.php index c672a6a..229ac4b 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -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 = [