Skip to content

Instantly share code, notes, and snippets.

@wdchris
Last active May 18, 2020 17:29
Show Gist options
  • Save wdchris/d210dcfd0d8dc637df51da696fe36eb6 to your computer and use it in GitHub Desktop.
Save wdchris/d210dcfd0d8dc637df51da696fe36eb6 to your computer and use it in GitHub Desktop.
Function for calling Trello api to load cards
let boards = await trelloData.getBoards();
boards = await Promise.all(
boards.map(async board => {
const lists = await trelloData.getLists(board.id, true);
board.lists = lists;
return board;
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment