mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
rebase from vscode f35c3823
This commit is contained in:
@@ -228,9 +228,9 @@ export class GitHubServer implements IGitHubServer {
|
||||
|
||||
if (result.ok) {
|
||||
try {
|
||||
const json = await result.json();
|
||||
const json = await result.json() as { id: number; login: string };
|
||||
this._logger.info('Got account info!');
|
||||
return { id: json.id, accountName: json.login };
|
||||
return { id: `${json.id}`, accountName: json.login };
|
||||
} catch (e) {
|
||||
this._logger.error(`Unexpected error parsing response from GitHub: ${e.message ?? e}`);
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user