Update account gamertag in pull if different than record shows

 - OW API is case sensitive
parent d04becd4
Pipeline #847 passed with stages
in 3 minutes and 51 seconds
......@@ -78,6 +78,8 @@ class Client extends Http
'gamertag' => $gamertag,
'accountType' => $platform,
]);
} else {
$account->gamertag = $gamertag;
}
$data = $this->fetchBlobStat($account, $platform);
......@@ -85,6 +87,12 @@ class Client extends Http
// 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