fix: allow adding pc players

parent e1ead6f2
Pipeline #1426 failed with stages
in 2 minutes and 34 seconds
......@@ -84,18 +84,19 @@ class Client extends Http
]);
}
// check for mismatch GT
if (!str_contains($gamertag, '#') && $account->gamertag !== $gamertag) {
$account->gamertag = $gamertag;
$account->save();
}
$account->gamertag = Text::blizzard($gamertag);
$data = $this->fetchBlobStat($account, $platform);
// Insert data
$this->updateOrInsertStats($account, $data);
// check for mismatch GT
if ($account->gamertag !== $gamertag) {
$account->gamertag = $gamertag;
$account->save();
}
return $account;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment