Open Naitsabot opened 5 months ago
Then we can fill the profiles for a team using the following pseudocode:
> Object.fromEntries(x['teams']['team_id...'].profile_ids.map((user_id) => [user_id, x['profiles'][user_id]]))
{
'profile_id...': {
first_name: 'Sille',
last_name: 'Smilefjes',
interests: [ 'skiing', 'paint-ball', 'hardcore roller-skating' ],
time_availability: [ '2024-1-2_12:13', '2024-1-3_13:16', '2024-1-4_14:17' ]
}
}
]```
Noget som dette, idk: