Skip to content

Instantly share code, notes, and snippets.

@vitornogueira
Created July 6, 2018 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitornogueira/7cc53b9c292a8efb83800a9ca8861e0f to your computer and use it in GitHub Desktop.
Save vitornogueira/7cc53b9c292a8efb83800a9ca8861e0f to your computer and use it in GitHub Desktop.
getUser(id)
.then(user => getPermissions(user.id))
.then(permissions => getLinks({ permissions: permissions.map(id => id)))
.then(links => renderLinks(links))
.catch(error => handleError(error));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment