Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buy album #11

Merged
merged 6 commits into from Jul 23, 2019
Merged

Buy album #11

merged 6 commits into from Jul 23, 2019

Conversation

dbenavidesv
Copy link
Contributor

Summary

  • Added Album sequelize model and migration
  • Implemented graphql mutation buyAlbum for buying album for logged user
  • Implemented authentication validation as middleware
  • Added test for the resolver buyAlbum directly

Known Issues

Trello Card

https://trello.com/c/gAWtItEM

.then(album => albumsService.addAlbum({ ...albumsHelpers.albumMapper(album), userId: user.id }))
.catch(error => {
logger.error(`Failed to buy album. Error: ${error.message}`);
throw error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

throw new error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@dbenavidesv dbenavidesv assigned gonziesc and unassigned gonziesc Jul 23, 2019
@dbenavidesv dbenavidesv merged commit f5d0812 into master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants