]> git.localhorst.tv Git - alttp.git/commitdiff
fix user by discord tag lookup
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 20 Feb 2023 21:49:37 +0000 (22:49 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 20 Feb 2023 21:49:37 +0000 (22:49 +0100)
app/Console/Commands/SyncSpeedGaming.php

index d75da5078bfea496aea043793149395154959b61..eaaa4fa48e7ccb5989d0c4ca29218ed3c80857c5 100644 (file)
@@ -301,7 +301,7 @@ class SyncSpeedGaming extends Command {
                        $tag = explode('#', $player['discordTag']);
                        $user = User::firstWhere([
                                ['username', 'LIKE', $tag[0]],
-                               ['username', 'LIKE', $tag[1]],
+                               ['discriminator', '=', $tag[1]],
                        ]);
                        if ($user) return $user;
                }