refactor: update lowdb and lodash

This commit is contained in:
Typicode
2016-05-08 18:53:43 +02:00
parent 293bac6f73
commit fc08f60898
8 changed files with 63 additions and 49 deletions

View File

@ -41,7 +41,7 @@ function createId (coll) {
if (_.isEmpty(coll)) {
return 1
} else {
var id = _.max(coll, function (doc) {
var id = _.maxBy(coll, function (doc) {
return doc[idProperty]
})[idProperty]