Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seanemmer committed Jul 30, 2018
2 parents bca0e8a + 5cf1862 commit 75cff83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Seeder.prototype.populateModels = function(seedData, cb) {
return new Error('Not connected to db, exiting function');
}

var modelNames = _.unique(_.pluck(seedData, 'model'));
var modelNames = _.uniq(_.map(seedData, 'model'));
var _this = this;

// Confirm that all Models have been registered in Mongoose
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"async": "~1.2.0",
"chalk": "~1.0.0",
"lodash": "~3.9.3",
"lodash": "~4.17.10",
"path": "~0.11.14"
},
"devDependencies": {
Expand Down

0 comments on commit 75cff83

Please sign in to comment.