Merge pull request #27 from moT01/fix/clearer-instructions-to-lesson-4

fix: make lesson 4 instructions clearer
This commit is contained in:
Tom 2020-09-03 08:58:14 -05:00 committed by GitHub
commit 7a63172218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,8 +90,9 @@ var createAndSavePerson = function(done) {
// e.g. when seeding a database with initial data. `Model.create()` // e.g. when seeding a database with initial data. `Model.create()`
// takes an array of objects like [{name: 'John', ...}, {...}, ...], // takes an array of objects like [{name: 'John', ...}, {...}, ...],
// as the 1st argument, and saves them all in the db. // as the 1st argument, and saves them all in the db.
// Create many people using `Model.create()`, using the function argument // Modify the createManyPeople function to create many people using
// 'arrayOfPeople'. // Model.create() with the argument arrayOfPeople.
// Note: You can reuse the model you instantiated in the previous exercise.
var createManyPeople = function(arrayOfPeople, done) { var createManyPeople = function(arrayOfPeople, done) {