Skip to content
Snippets Groups Projects
Commit 1a28aa26 authored by L4168's avatar L4168
Browse files

add icon and faction colour to return

parent 41cd65ab
No related branches found
No related tags found
3 merge requests!59Development to master,!54Development to testing,!49Replay update
......@@ -60,13 +60,11 @@ export class ReplayService {
// parse data
const currentdata = await Promise.all(
playerdata.map(async player => {
player['data'][0]['info'] = [
{ key: 'icon', value: player.icon },
{ key: 'colour', value: player.faction.colour },
];
return player['data'];
/* return {
gamepersonId: player['gamepersonId']['gamepersonId'],
gamepersonRole: player['gamepersonId']['role'],
factionId: player['faction']['factionId'],
coordinates: player['data'],
}; */
}),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment