Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Using SQL ORMs with Node.js Getting Started with Sequelize Test the Database

In following these instructions exactly, both movies were added to the database, but Promise.All returned only one item.

Is this a bug with the Promise.All library?

2 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Brian Beeler,

I just tested the file using the Promise.all() approach and it returned both movies. Could you please post your code here so that we could have a look? Thanks! :)

Guil,

I just refactored my code back into Promise.All() structure and it worked as expected. I can no longer reproduce the issue. It was probably an error in my code of which I was unaware.

Thanks,

Brian