From: Daniel Karbach Date: Mon, 20 Feb 2023 21:49:37 +0000 (+0100) Subject: fix user by discord tag lookup X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=343b423a42670ec21cdb95025020264346ad62fb;p=alttp.git fix user by discord tag lookup --- diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index d75da50..eaaa4fa 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -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; }