From 343b423a42670ec21cdb95025020264346ad62fb Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 20 Feb 2023 22:49:37 +0100 Subject: [PATCH] fix user by discord tag lookup --- app/Console/Commands/SyncSpeedGaming.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2