profile: add: game history
This commit is contained in:
@ -75,14 +75,14 @@ export class Profile extends AExchangeable
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {[Object]}
|
||||
* @returns {Promise<[Object]>}
|
||||
*/
|
||||
async getGameHistory()
|
||||
{
|
||||
let response = await this.client._get(`/api/games/history/${this.id}`);
|
||||
let response_data = await response.json();
|
||||
const response = await this.client._get(`/api/games/history/${this.id}`);
|
||||
const response_data = await response.json();
|
||||
|
||||
let games = [];
|
||||
const games = [];
|
||||
|
||||
response_data.forEach(game_data => {
|
||||
games.push(game_data);
|
||||
|
Reference in New Issue
Block a user